File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -172,14 +172,14 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_0(time_ticks_cpu_obj, time_ticks_cpu);
172172STATIC mp_obj_t time_ticks_diff (mp_obj_t start_in , mp_obj_t end_in ) {
173173 int32_t start = mp_obj_get_int_truncated (start_in );
174174 int32_t end = mp_obj_get_int_truncated (end_in );
175- return mp_obj_new_int (( end - start ) );
175+ return mp_obj_new_int (end - start );
176176}
177177STATIC MP_DEFINE_CONST_FUN_OBJ_2 (time_ticks_diff_obj , time_ticks_diff );
178178
179179STATIC mp_obj_t time_ticks_add (mp_obj_t start_in , mp_obj_t delta_in ) {
180- uint32_t start = mp_obj_get_int_truncated (start_in );
181- uint32_t delta = mp_obj_get_int_truncated (delta_in );
182- return mp_obj_new_int_from_uint (( start + delta ) );
180+ int32_t start = mp_obj_get_int_truncated (start_in );
181+ int32_t delta = mp_obj_get_int_truncated (delta_in );
182+ return mp_obj_new_int ( start + delta );
183183}
184184STATIC MP_DEFINE_CONST_FUN_OBJ_2 (time_ticks_add_obj , time_ticks_add );
185185
You can’t perform that action at this time.
0 commit comments