mirror of
https://github.com/pocketpy/pocketpy
synced 2025-12-06 18:20:17 +00:00
Update ceval.cpp
This commit is contained in:
parent
f1dc9486a5
commit
4ba454f7a3
@ -11,7 +11,7 @@ namespace pkpy{
|
||||
#define PREDICT_INT_DIV_OP(op) \
|
||||
if(is_int(_0) && is_int(_1)){ \
|
||||
i64 divisor = _1.as<i64>(); \
|
||||
if(_1.as<i64>() == 0) ZeroDivisionError(); \
|
||||
if(divisor == 0) ZeroDivisionError(); \
|
||||
TOP() = VAR(_0.as<i64>() op divisor); \
|
||||
DISPATCH() \
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user