aboutsummaryrefslogtreecommitdiff
path: root/py/objint_mpz.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-09-07 10:55:43 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-09-07 10:55:43 +0300
commitd4d1c45a553c6361a72053383f0fe242f05cad3d (patch)
tree55818ff6d2a20dc27a35781f149119f8832fa7f4 /py/objint_mpz.c
parent5c603bd0fd53e7dbd709883f289d1e580c86e33d (diff)
py/runtime0.h: Move relational ops to the beginning of mp_binary_op_t.
This is to allow to encode arithmetic operations more efficiently, in preparation to introduction of __rOP__ method support.
Diffstat (limited to 'py/objint_mpz.c')
-rw-r--r--py/objint_mpz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objint_mpz.c b/py/objint_mpz.c
index 148446f0f..c7a3074ba 100644
--- a/py/objint_mpz.c
+++ b/py/objint_mpz.c
@@ -221,7 +221,7 @@ mp_obj_t mp_obj_int_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_i
return mp_obj_new_float(flhs / frhs);
#endif
- } else if (op <= MP_BINARY_OP_INPLACE_POWER) {
+ } else if (op >= MP_BINARY_OP_OR) {
mp_obj_int_t *res = mp_obj_int_new_mpz();
switch (op) {