Parcourir la source

some optimize

blueloveTH il y a 1 an
Parent
commit
4db4274882
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/ceval.cpp

+ 1 - 1
src/ceval.cpp

@@ -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 == VAR(0)) ZeroDivisionError();   \
+        if(_1 == 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() \
     }
     }