diff options
author | Damien George <damien.p.george@gmail.com> | 2014-10-03 17:44:14 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-10-03 17:44:14 +0000 |
commit | 42f3de924bc3e285490f5f293955bc6d7e5a0edf (patch) | |
tree | c33a59825957ca5561bb7bb5038575ff052d5245 /py/modstruct.c | |
parent | 877dba3e1a76d151c0d93c88bcfaac62ecfe3799 (diff) |
py: Convert [u]int to mp_[u]int_t where appropriate.
Addressing issue #50.
Diffstat (limited to 'py/modstruct.c')
-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 8d4400638..8122a9668 100644 --- a/py/modstruct.c +++ b/py/modstruct.c @@ -164,7 +164,7 @@ STATIC mp_obj_t struct_pack(uint n_args, mp_obj_t *args) { // TODO: "The arguments must match the values required by the format exactly." const char *fmt = mp_obj_str_get_str(args[0]); char fmt_type = get_fmt_type(&fmt); - int size = MP_OBJ_SMALL_INT_VALUE(struct_calcsize(args[0])); + mp_int_t size = MP_OBJ_SMALL_INT_VALUE(struct_calcsize(args[0])); byte *p; mp_obj_t res = mp_obj_str_builder_start(&mp_type_bytes, size, &p); memset(p, 0, size); |