From 76f8cedb52613e27d4d5a031899154e31e00b045 Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Sat, 15 Feb 2014 00:28:41 +0200
Subject: [PATCH] mp_binary_get_val(): Fix value type.

---
 py/binary.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/py/binary.c b/py/binary.c
index 71d715c3e..b28eb6426 100644
--- a/py/binary.c
+++ b/py/binary.c
@@ -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];
-- 
GitLab