summaryrefslogtreecommitdiff
path: root/py/objint.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-08-30 14:19:41 +0100
committerDamien George <damien.p.george@gmail.com>2014-08-30 14:19:41 +0100
commitd182b98a37bde34c06ae705624da03cf381eb4dc (patch)
tree0e7599a07d2c3ad17be2a3a708759c07e638a20d /py/objint.c
parent9c4cbe2ac0ae4c51270f21ba9c974dd24f6b9d55 (diff)
py: Change all uint to mp_uint_t in obj.h.
Part of code cleanup, working towards resolving issue #50.
Diffstat (limited to 'py/objint.c')
-rw-r--r--py/objint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objint.c b/py/objint.c
index 16e868a37..9030d71c3 100644
--- a/py/objint.c
+++ b/py/objint.c
@@ -60,7 +60,7 @@ STATIC mp_obj_t mp_obj_int_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_
return args[0];
} else if (MP_OBJ_IS_STR_OR_BYTES(args[0])) {
// a string, parse it
- uint l;
+ mp_uint_t l;
const char *s = mp_obj_str_get_data(args[0], &l);
return mp_parse_num_integer(s, l, 0);
#if MICROPY_PY_BUILTINS_FLOAT
@@ -76,7 +76,7 @@ STATIC mp_obj_t mp_obj_int_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_
default: {
// should be a string, parse it
// TODO proper error checking of argument types
- uint l;
+ mp_uint_t l;
const char *s = mp_obj_str_get_data(args[0], &l);
return mp_parse_num_integer(s, l, mp_obj_get_int(args[1]));
}