Commit bf8ae4d9 authored by Damien George's avatar Damien George
Browse files

py: Fix modstruct to compile on 64-bit machine.

parent 3a8b1607
...@@ -38,7 +38,7 @@ STATIC mp_obj_t struct_calcsize(mp_obj_t fmt_in) { ...@@ -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); const char *fmt = mp_obj_str_get_str(fmt_in);
char fmt_type = get_fmt_type(&fmt); char fmt_type = get_fmt_type(&fmt);
assert(fmt_type == '<'); (void)fmt_type; assert(fmt_type == '<'); (void)fmt_type;
uint size; machine_uint_t size;
for (size = 0; *fmt; fmt++) { for (size = 0; *fmt; fmt++) {
int sz = mp_binary_get_size(*fmt); int sz = mp_binary_get_size(*fmt);
// TODO // TODO
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment