diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-10 13:53:31 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-10 13:53:31 +0100 |
commit | bf8ae4d96eebc66bc92ef302757d22d9c79baf9b (patch) | |
tree | d460259f9a5d0d7ac4df6fe02cb1756b78f9f9ea /py | |
parent | 3a8b1607fcbffdbff0a0001d6baacea7693d15b9 (diff) | |
download | micropython-bf8ae4d96eebc66bc92ef302757d22d9c79baf9b.tar.gz micropython-bf8ae4d96eebc66bc92ef302757d22d9c79baf9b.zip |
py: Fix modstruct to compile on 64-bit machine.
Diffstat (limited to 'py')
-rw-r--r-- | py/modstruct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/modstruct.c b/py/modstruct.c index b5110df1b7..23c2c903de 100644 --- a/py/modstruct.c +++ b/py/modstruct.c @@ -38,7 +38,7 @@ STATIC mp_obj_t struct_calcsize(mp_obj_t fmt_in) { const char *fmt = mp_obj_str_get_str(fmt_in); char fmt_type = get_fmt_type(&fmt); assert(fmt_type == '<'); (void)fmt_type; - uint size; + machine_uint_t size; for (size = 0; *fmt; fmt++) { int sz = mp_binary_get_size(*fmt); // TODO |