diff options
| author | Damien George | 2014-07-31 13:47:06 +0000 |
|---|---|---|
| committer | Damien George | 2014-07-31 13:47:06 +0000 |
| commit | 8cc2018d47bc15a1b10295965fc0ccd27c0dcbba (patch) | |
| tree | 5e8ba4bed5de1f1973203b9cff2c8aab78b419fc /stmhal/pin.c | |
| parent | c9aa58e6381018cca2513e3468363af0b5442d1f (diff) | |
| parent | bb4c6f35c627ab3487cdd6bafb4588cc633cd6a4 (diff) | |
Merge branch 'master' of https://github.com/micropython/micropython
Diffstat (limited to 'stmhal/pin.c')
| -rw-r--r-- | stmhal/pin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/pin.c b/stmhal/pin.c index 56f179f40..20661cfce 100644 --- a/stmhal/pin.c +++ b/stmhal/pin.c @@ -352,7 +352,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(pin_name_obj, pin_name); /// Get the pin port. STATIC mp_obj_t pin_port(mp_obj_t self_in) { pin_obj_t *self = self_in; - return MP_OBJ_NEW_SMALL_INT((mp_int_t)self->port); + return MP_OBJ_NEW_SMALL_INT(self->port); } STATIC MP_DEFINE_CONST_FUN_OBJ_1(pin_port_obj, pin_port); @@ -360,7 +360,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(pin_port_obj, pin_port); /// Get the pin number. STATIC mp_obj_t pin_pin(mp_obj_t self_in) { pin_obj_t *self = self_in; - return MP_OBJ_NEW_SMALL_INT((mp_int_t)self->pin); + return MP_OBJ_NEW_SMALL_INT(self->pin); } STATIC MP_DEFINE_CONST_FUN_OBJ_1(pin_pin_obj, pin_pin); |
