Skip to content

Commit 7aa6fcd

Browse files
committed
[FIX] potential overflow
1 parent 224e07f commit 7aa6fcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/art_pi_factory/packages/btstack-v0.0.1/platform/posix/btstack_run_loop_posix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static uint32_t btstack_run_loop_posix_get_time_ms(void){
186186
clock_gettime(CLOCK_MONOTONIC, &now_ts);
187187
time_ms = (uint32_t) timespec_diff_milis(&init_ts, &now_ts);
188188
#else
189-
time_ms = rt_tick_get()*1000/RT_TICK_PER_SECOND;
189+
time_ms = rt_tick_get()*1000ULL/RT_TICK_PER_SECOND;
190190
#endif
191191
return time_ms;
192192
}

0 commit comments

Comments
 (0)