Commit 76f8cedb authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

mp_binary_get_val(): Fix value type.

parent 60a0d3f1
......@@ -42,7 +42,7 @@ int mp_binary_get_size(char typecode) {
}
mp_obj_t mp_binary_get_val(char typecode, void *p, int index) {
int val = 0;
machine_int_t val = 0;
switch (typecode) {
case 'b':
val = ((int8_t*)p)[index];
......
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