diff options
| author | Tom Collins | 2017-06-30 16:23:29 -0700 |
|---|---|---|
| committer | Damien George | 2017-07-07 11:32:22 +1000 |
| commit | 145796f037715e180b441b38c1ec1ba45ff77797 (patch) | |
| tree | c709871f107f103dfdccd7c6975cd4f07a006477 /extmod | |
| parent | ed52955c6bb05d2a08c009ed24ab3214c88c6fb1 (diff) | |
py,extmod: Some casts and minor refactors to quiet compiler warnings.
Diffstat (limited to 'extmod')
| -rw-r--r-- | extmod/utime_mphal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/utime_mphal.c b/extmod/utime_mphal.c index e99ba46ce..0fe3a3ba1 100644 --- a/extmod/utime_mphal.c +++ b/extmod/utime_mphal.c @@ -38,7 +38,7 @@ STATIC mp_obj_t time_sleep(mp_obj_t seconds_o) { #if MICROPY_PY_BUILTINS_FLOAT - mp_hal_delay_ms(1000 * mp_obj_get_float(seconds_o)); + mp_hal_delay_ms((mp_uint_t)(1000 * mp_obj_get_float(seconds_o))); #else mp_hal_delay_ms(1000 * mp_obj_get_int(seconds_o)); #endif |
