Skip to content

Commit 87f068d

Browse files
committed
cc3200: Update to use size_t for tuple/list accessors.
1 parent 46e98d9 commit 87f068d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cc3200/mods/modutime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ STATIC mp_obj_t time_localtime(mp_uint_t n_args, const mp_obj_t *args) {
102102
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(time_localtime_obj, 0, 1, time_localtime);
103103

104104
STATIC mp_obj_t time_mktime(mp_obj_t tuple) {
105-
mp_uint_t len;
105+
size_t len;
106106
mp_obj_t *elem;
107107

108108
mp_obj_get_array(tuple, &len, &elem);

cc3200/mods/pybrtc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ STATIC uint pyb_rtc_datetime_s_us(const mp_obj_t datetime, uint32_t *seconds) {
196196

197197
// set date and time
198198
mp_obj_t *items;
199-
uint len;
199+
size_t len;
200200
mp_obj_get_array(datetime, &len, &items);
201201

202202
// verify the tuple

cc3200/mods/pybuart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ STATIC mp_obj_t pyb_uart_init_helper(pyb_uart_obj_t *self, const mp_arg_val_t *a
388388
uint flowcontrol = UART_FLOWCONTROL_NONE;
389389
if (pins_o != mp_const_none) {
390390
mp_obj_t *pins;
391-
mp_uint_t n_pins = 2;
391+
size_t n_pins = 2;
392392
if (pins_o == MP_OBJ_NULL) {
393393
// use the default pins
394394
pins = (mp_obj_t *)pyb_uart_def_pin[self->uart_id];
@@ -454,7 +454,7 @@ STATIC mp_obj_t pyb_uart_make_new(const mp_obj_type_t *type, size_t n_args, size
454454
if (args[0].u_obj == MP_OBJ_NULL) {
455455
if (args[5].u_obj != MP_OBJ_NULL) {
456456
mp_obj_t *pins;
457-
mp_uint_t n_pins = 2;
457+
size_t n_pins = 2;
458458
mp_obj_get_array(args[5].u_obj, &n_pins, &pins);
459459
// check the Tx pin (or the Rx if Tx is None)
460460
if (pins[0] == mp_const_none) {

0 commit comments

Comments
 (0)