Skip to content

Commit d300a31

Browse files
joevtdingusdev
authored andcommitted
swim3: Ensure 32-bit multiply result.
1 parent 9874aa1 commit d300a31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devices/floppy/swim3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ void Swim3Ctrl::init_timer(const uint8_t start_val)
400400
this->one_us_timer_start = TimerManager::get_instance()->current_time_ns();
401401

402402
this->one_us_timer_id = TimerManager::get_instance()->add_oneshot_timer(
403-
this->timer_val * NS_PER_USEC,
403+
uint32_t(this->timer_val) * NS_PER_USEC,
404404
[this]() {
405405
this->timer_val = 0;
406406
this->int_flags |= INT_TIMER_DONE;

0 commit comments

Comments
 (0)