Skip to content
Snippets Groups Projects
Commit 76f8cedb authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

mp_binary_get_val(): Fix value type.

parent 60a0d3f1
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ int mp_binary_get_size(char typecode) { ...@@ -42,7 +42,7 @@ int mp_binary_get_size(char typecode) {
} }
mp_obj_t mp_binary_get_val(char typecode, void *p, int index) { mp_obj_t mp_binary_get_val(char typecode, void *p, int index) {
int val = 0; machine_int_t val = 0;
switch (typecode) { switch (typecode) {
case 'b': case 'b':
val = ((int8_t*)p)[index]; val = ((int8_t*)p)[index];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment