diff options
author | Damien George <damien.p.george@gmail.com> | 2014-07-24 14:21:37 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-07-24 14:21:37 +0100 |
commit | ffe911d228c3b7e35ef6ae775c802cdd05cffa47 (patch) | |
tree | 0cb1c7c2e8ef4724a8a8f2c21613e65d88cb69e0 /py/objint.h | |
parent | 4ecb700fe34491c563372ffa72387ef6d45ce5d8 (diff) | |
download | micropython-ffe911d228c3b7e35ef6ae775c802cdd05cffa47.tar.gz micropython-ffe911d228c3b7e35ef6ae775c802cdd05cffa47.zip |
py: Make long ints hashable.
Addresses issue #765.
Diffstat (limited to 'py/objint.h')
-rw-r--r-- | py/objint.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/objint.h b/py/objint.h index 1d12cffae0..b4f8c9ae50 100644 --- a/py/objint.h +++ b/py/objint.h @@ -38,6 +38,7 @@ char *mp_obj_int_formatted(char **buf, int *buf_size, int *fmt_size, mp_const_ob int base, const char *prefix, char base_char, char comma); char *mp_obj_int_formatted_impl(char **buf, int *buf_size, int *fmt_size, mp_const_obj_t self_in, 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_unary_op(int op, mp_obj_t o_in); mp_obj_t mp_obj_int_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in); |