mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
some fix
This commit is contained in:
parent
4db4274882
commit
beaf05f6c1
@ -10,7 +10,7 @@ namespace pkpy{
|
|||||||
|
|
||||||
#define PREDICT_INT_DIV_OP(op) \
|
#define PREDICT_INT_DIV_OP(op) \
|
||||||
if(is_small_int(_0) && is_small_int(_1)){ \
|
if(is_small_int(_0) && is_small_int(_1)){ \
|
||||||
if(_1 == 0b10) ZeroDivisionError(); \
|
if(_1 == reinterpret_cast<PyObject*>(0b10)) ZeroDivisionError(); \
|
||||||
TOP() = VAR((i64)(PK_BITS(_0)>>2) op (i64)(PK_BITS(_1)>>2)); \
|
TOP() = VAR((i64)(PK_BITS(_0)>>2) op (i64)(PK_BITS(_1)>>2)); \
|
||||||
DISPATCH() \
|
DISPATCH() \
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user