diff options
author | Damien George <damien.p.george@gmail.com> | 2016-01-07 14:29:12 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-01-07 14:29:12 +0000 |
commit | d6b31e4578a9f7ed4f970774fe91eeb811b1d475 (patch) | |
tree | 9914e2aa40f688617b4f32073f4cca320eebe615 /py/objint.h | |
parent | 93b3726240ed50aa162d47519d38b1713f93298a (diff) | |
download | micropython-d6b31e4578a9f7ed4f970774fe91eeb811b1d475.tar.gz micropython-d6b31e4578a9f7ed4f970774fe91eeb811b1d475.zip |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objint.h b/py/objint.h index 09cf7c86da..c79eb874a9 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); |