mirror of
https://github.com/holub/mame
synced 2025-04-27 02:33:13 +03:00
Damn unsigned (nw)
This commit is contained in:
parent
5d13436bef
commit
7df6a23ba2
@ -604,10 +604,10 @@ int floppy_image_device::find_index(UINT32 position, const std::vector<UINT32> &
|
||||
step >>= 1;
|
||||
|
||||
for(;;) {
|
||||
if(spos >= buf.size() || (spos > 0 && (buf[spos] & floppy_image::TIME_MASK) > position)) {
|
||||
if(spos >= int(buf.size()) || (spos > 0 && (buf[spos] & floppy_image::TIME_MASK) > position)) {
|
||||
spos -= step;
|
||||
step >>= 1;
|
||||
} else if(spos < 0 || (spos < buf.size()-1 && (buf[spos+1] & floppy_image::TIME_MASK) <= position)) {
|
||||
} else if(spos < 0 || (spos < int(buf.size())-1 && (buf[spos+1] & floppy_image::TIME_MASK) <= position)) {
|
||||
spos += step;
|
||||
step >>= 1;
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user