summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-04-19 22:45:19 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-04-20 13:08:33 +0300
commit4e4fa94c4c5f1558537426c92438aa629b75d58b (patch)
tree7635511467cc483c7652e82310068d44d58e0b32 /py
parent53775026e75d6a1c2611eb71ccfa118d1d82bddb (diff)
downloadmicropython-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.c2
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));