--- parser3/src/classes/int.C 2001/08/07 13:54:13 1.32 +++ parser3/src/classes/int.C 2001/10/09 07:06:00 1.35 @@ -2,12 +2,10 @@ Parser: @b int parser class. Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) - $Id: int.C,v 1.32 2001/08/07 13:54:13 parser Exp $ + $Id: int.C,v 1.35 2001/10/09 07:06:00 parser Exp $ */ -static const char *RCSId="$Id: int.C,v 1.32 2001/08/07 13:54:13 parser Exp $"; #include "classes.h" #include "pa_request.h" @@ -60,11 +58,7 @@ static void __mod(VInt& vint, double par static void vint_op(Request& r, MethodParams *params, vint_op_func_ptr func) { VInt *vint=static_cast(r.self); - double param=params->size()? - r.process( - params->get(0), - 0/*no name*/, - false/*don't intercept string*/).as_double():1; + double param=params->size()?params->as_double(0, "param must be numerical", r):1; (*func)(*vint, param); }