--- parser3/src/main/execute.C 2001/06/29 14:16:29 1.172 +++ parser3/src/main/execute.C 2001/07/06 11:13:35 1.174 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) */ -static const char *RCSId="$Id: execute.C,v 1.172 2001/06/29 14:16:29 parser Exp $"; +static const char *RCSId="$Id: execute.C,v 1.174 2001/07/06 11:13:35 parser Exp $"; #include "pa_opcode.h" #include "pa_array.h" @@ -253,6 +253,7 @@ void Request::execute(const Array& ops) // maybe they do ^object.method[] call, remember the fact wcontext->inc_somebody_entered_some_object(); + //_asm int 3; Value *value=get_element(); PUSH(value); break; @@ -552,10 +553,10 @@ void Request::execute(const Array& ops) { Value *b=POP(); Value *a=POP(); - int a_int=a->as_int(); - int b_int=b->as_int(); + double a_double=a->as_double(); + double b_double=b->as_double(); - if(b_int == 0) { + if(b_double == 0) { const String *problem_source=&b->as_string(); #ifndef NO_STRING_ORIGIN if(!problem_source->origin().file) @@ -566,7 +567,7 @@ void Request::execute(const Array& ops) "Modulus by zero"); } - Value *value=NEW VDouble(pool(), a_int % b_int); + Value *value=NEW VDouble(pool(), fmod(a_double, b_double)); PUSH(value); break; }