summaryrefslogtreecommitdiff
path: root/py/objint.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-05-09 00:03:42 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-05-09 00:03:42 +0300
commit62b5f42d8174e49bc219e5231d4fc9503ece4131 (patch)
tree77f04b1a2af0c4667e5ef3194b2717a7a0047f67 /py/objint.c
parentffae48d7507d398806bd935b054b7ca19bc01161 (diff)
parent01d6be4d512118d39ef52f79ca9ddddd2bba3f32 (diff)
Merge pull request #568 from stinos/windows-msvc-port
Windows MS Visual C port
Diffstat (limited to 'py/objint.c')
-rw-r--r--py/objint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objint.c b/py/objint.c
index c8bcb6080..73b4c5d0b 100644
--- a/py/objint.c
+++ b/py/objint.c
@@ -303,7 +303,7 @@ STATIC mp_obj_t int_from_bytes(uint n_args, const mp_obj_t *args) {
// convert the bytes to an integer
machine_uint_t value = 0;
- for (const byte* buf = bufinfo.buf + bufinfo.len - 1; buf >= (byte*)bufinfo.buf; buf--) {
+ for (const byte* buf = (const byte*)bufinfo.buf + bufinfo.len - 1; buf >= (byte*)bufinfo.buf; buf--) {
value = (value << 8) | *buf;
}