handle x % 0 by giving a 0 result

This commit is contained in:
Bill Currie 2004-02-20 00:25:08 +00:00
parent 1a28ee2aaf
commit ac67a50a9a

View file

@ -229,6 +229,11 @@ signal_hook (int sig, void *data)
else
OPC.integer_var = 0x7fffffff;
return 1;
case OP_MOD_I:
case OP_MOD_U:
case OP_MOD_F:
OPC.integer_var = 0x00000000;
return 1;
default:
break;
}