diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-19 22:45:19 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-20 13:08:33 +0300 |
commit | 4e4fa94c4c5f1558537426c92438aa629b75d58b (patch) | |
tree | 7635511467cc483c7652e82310068d44d58e0b32 /py | |
parent | 53775026e75d6a1c2611eb71ccfa118d1d82bddb (diff) | |
download | micropython-4e4fa94c4c5f1558537426c92438aa629b75d58b.tar.gz micropython-4e4fa94c4c5f1558537426c92438aa629b75d58b.zip |
modstruct: Use proper int accessor which checks input value type.
Diffstat (limited to 'py')
-rw-r--r-- | py/binary.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/binary.c b/py/binary.c index ee95d56e44..d8277669d0 100644 --- a/py/binary.c +++ b/py/binary.c @@ -156,7 +156,7 @@ void mp_binary_set_val(char struct_type, char val_type, mp_obj_t val_in, byte ** #if MP_ENDIANNESS_BIG #error Not implemented #endif - machine_int_t val = mp_obj_int_get_checked(val_in); + machine_int_t val = mp_obj_get_int(val_in); byte *in = (byte*)&val; int in_delta, out_delta; uint val_sz = MIN(size, sizeof(val)); |