--- parser3/src/classes/math.C 2003/02/04 14:12:42 1.24.2.4 +++ parser3/src/classes/math.C 2003/02/04 15:15:02 1.24.2.5 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_MATH_C="$Date: 2003/02/04 14:12:42 $"; +static const char* IDENT_MATH_C="$Date: 2003/02/04 15:15:02 $"; #include "pa_vmethod_frame.h" @@ -51,7 +51,7 @@ static void _random(Request& r, StringPt double top=r.process_to_value(range).as_double(); if(top<=1) throw Exception("parser.runtime", - &method_name, + method_name, "top must be above 1(%g)", top); r.write_no_lang(*new(pool) VInt(pool, _random(uint(top)))); @@ -163,13 +163,13 @@ static void _crypt(Request& r, StringPtr || !sample_buf[0] // generated nothing || strncmp(sample_buf, normal_salt, prefix_size)!=0) // salt prefix not preserved throw Exception("parser.runtime", - &method_name, + method_name, "on this platform does not support '%.*s' salt prefix", prefix_size, normal_salt); r.write_pass_lang(*new(pool) String(pool, sample_buf)); #else throw Exception("parser.runtime", - &method_name, + method_name, "salt must start with '" PA_MD5PW_ID "'"); #endif }