mirror of
https://github.com/holub/mame
synced 2025-04-21 16:01:56 +03:00
floppy.cpp: as_ticks returns a u64, so go unsigned all the way
This commit is contained in:
parent
cc03eb3b03
commit
0feb608c6c
@ -932,9 +932,7 @@ attotime floppy_image_device::get_next_transition(const attotime &from_when)
|
||||
return cache_end_time;
|
||||
|
||||
// Put a flux transition in the middle of a 4us interval with a 50% probability
|
||||
int64_t interval_index = (from_when - cache_weak_start).as_ticks(250000);
|
||||
if(interval_index < 0)
|
||||
interval_index = 0;
|
||||
uint64_t interval_index = (from_when < cache_weak_start) ? 0 : (from_when - cache_weak_start).as_ticks(250000);
|
||||
attotime weak_time = cache_weak_start + attotime::from_ticks(interval_index*2+1, 500000);
|
||||
for(;;) {
|
||||
if(weak_time >= cache_end_time)
|
||||
|
Loading…
Reference in New Issue
Block a user