Commit 4e4fa94c authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

modstruct: Use proper int accessor which checks input value type.

parent 53775026
......@@ -156,7 +156,7 @@ void mp_binary_set_val(char struct_type, char val_type, mp_obj_t val_in, byte **
#error Not implemented
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));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment