aboutsummaryrefslogtreecommitdiff
path: root/stmhal/modtime.c
diff options
context:
space:
mode:
authorDamien George2014-10-05 21:51:54 +0100
committerDamien George2014-10-05 21:51:54 +0100
commitd03c6816083c8ce8a35d278ede48c4089012b055 (patch)
tree649e2d3bf056a44109fb1f69bf1c855f3b11d067 /stmhal/modtime.c
parentc4d0868df1117ad243ee8f7238985a822b0f775d (diff)
stmhal: Use mp_uint_t where appropriate.
Found these by compiling stmhal with mp_uint_t of type uint32_t instead of unsigned int. This actually makes a difference to the code, but just a curiosity.
Diffstat (limited to 'stmhal/modtime.c')
-rw-r--r--stmhal/modtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/modtime.c b/stmhal/modtime.c
index 1bf8c30c4..89df6ae99 100644
--- a/stmhal/modtime.c
+++ b/stmhal/modtime.c
@@ -233,7 +233,7 @@ MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(time_localtime_obj, 0, 1, time_localtime);
/// the number of seconds since Jan 1, 2000.
STATIC mp_obj_t time_mktime(mp_obj_t tuple) {
- uint len;
+ mp_uint_t len;
mp_obj_t *elem;
mp_obj_get_array(tuple, &len, &elem);