esp8266: Update to use size_t for tuple/list accessors.
This commit is contained in:
parent
87f068d7d9
commit
1d7e3113db
@ -84,7 +84,7 @@ MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(time_localtime_obj, 0, 1, time_localtime);
|
|||||||
/// which expresses a time as per localtime. It returns an integer which is
|
/// which expresses a time as per localtime. It returns an integer which is
|
||||||
/// the number of seconds since Jan 1, 2000.
|
/// the number of seconds since Jan 1, 2000.
|
||||||
STATIC mp_obj_t time_mktime(mp_obj_t tuple) {
|
STATIC mp_obj_t time_mktime(mp_obj_t tuple) {
|
||||||
mp_uint_t len;
|
size_t len;
|
||||||
mp_obj_t *elem;
|
mp_obj_t *elem;
|
||||||
mp_obj_get_array(tuple, &len, &elem);
|
mp_obj_get_array(tuple, &len, &elem);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user