summaryrefslogtreecommitdiff
path: root/py/objint.c
diff options
context:
space:
mode:
authorstijn <stinos@zoho.com>2014-05-05 12:18:27 +0200
committerstijn <stinos@zoho.com>2014-05-08 10:06:43 +0200
commit01d6be4d512118d39ef52f79ca9ddddd2bba3f32 (patch)
treee409a3f5397df34518027a2ce5f62065196f82d7 /py/objint.c
parentc1c32d65af038ba1b2a2a8dd69e3f7e63eac5f3e (diff)
Windows MSVC port
Extend the windows port so it compiles with the toolchain from Visual Studio 2013
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;
}