mp_binary_get_val(): Fix value type.

This commit is contained in:
Paul Sokolovsky 2014-02-15 00:28:41 +02:00
parent 60a0d3f1db
commit 76f8cedb52
1 changed files with 1 additions and 1 deletions

View File

@ -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];