aboutsummaryrefslogtreecommitdiff
path: root/py/objint_mpz.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-28 22:37:26 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-28 22:37:26 +1100
commit94c41bb06f6482ece0717c5bd63266b8da063caa (patch)
treedf160d43c3e16b8de060a1968a85c49f235077b0 /py/objint_mpz.c
parent7b1804c582a2ddb5a841335c43bd94faaee72584 (diff)
py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible.
Saves 168 bytes on bare-arm.
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 2cdf22505..ca989e8ad 100644
--- a/py/objint_mpz.c
+++ b/py/objint_mpz.c
@@ -277,7 +277,7 @@ mp_obj_t mp_obj_int_binary_op(mp_uint_t op, mp_obj_t lhs_in, mp_obj_t rhs_in) {
case MP_BINARY_OP_INPLACE_RSHIFT: {
mp_int_t irhs = mp_obj_int_get_checked(rhs_in);
if (irhs < 0) {
- mp_raise_msg(&mp_type_ValueError, "negative shift count");
+ mp_raise_ValueError("negative shift count");
}
if (op == MP_BINARY_OP_LSHIFT || op == MP_BINARY_OP_INPLACE_LSHIFT) {
mpz_shl_inpl(&res->mpz, zlhs, irhs);