aboutsummaryrefslogtreecommitdiff
path: root/py/objint.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-01-07 14:29:12 +0000
committerDamien George <damien.p.george@gmail.com>2016-01-07 14:29:12 +0000
commitd6b31e4578a9f7ed4f970774fe91eeb811b1d475 (patch)
tree9914e2aa40f688617b4f32073f4cca320eebe615 /py/objint.h
parent93b3726240ed50aa162d47519d38b1713f93298a (diff)
py: Change mp_obj_int_is_positive to more general mp_obj_int_sign.
This function returns the sign (-1, 0 or 1) of the integer object.
Diffstat (limited to 'py/objint.h')
-rw-r--r--py/objint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objint.h b/py/objint.h
index 09cf7c86d..c79eb874a 100644
--- a/py/objint.h
+++ b/py/objint.h
@@ -57,7 +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);
void mp_obj_int_to_bytes_impl(mp_obj_t self_in, bool big_endian, mp_uint_t len, byte *buf);
-bool mp_obj_int_is_positive(mp_obj_t self_in);
+int mp_obj_int_sign(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);