aboutsummaryrefslogtreecommitdiff
path: root/py/objint.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-03-14 22:07:30 +0000
committerDamien George <damien.p.george@gmail.com>2015-03-14 22:07:30 +0000
commit6837d46c1da0e7dd9cf73969bb58649222f455a4 (patch)
treedd23d5419797b3f849bae0285199fc65b712d56f /py/objint.h
parent26a9975fba2bbd8875f2671495003b9bdcb8d8b2 (diff)
py: Fix builtin abs so it works for bools and bignum.
Diffstat (limited to 'py/objint.h')
-rw-r--r--py/objint.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/objint.h b/py/objint.h
index c995f2632..63cd91a69 100644
--- a/py/objint.h
+++ b/py/objint.h
@@ -57,6 +57,7 @@ char *mp_obj_int_formatted_impl(char **buf, mp_uint_t *buf_size, mp_uint_t *fmt_
int base, const char *prefix, char base_char, char comma);
mp_int_t mp_obj_int_hash(mp_obj_t self_in);
bool mp_obj_int_is_positive(mp_obj_t self_in);
+mp_obj_t mp_obj_int_abs(mp_obj_t self_in);
mp_obj_t mp_obj_int_unary_op(mp_uint_t op, mp_obj_t o_in);
mp_obj_t mp_obj_int_binary_op(mp_uint_t op, mp_obj_t lhs_in, mp_obj_t rhs_in);
mp_obj_t mp_obj_int_binary_op_extra_cases(mp_uint_t op, mp_obj_t lhs_in, mp_obj_t rhs_in);