diff options
Diffstat (limited to 'src/lib/formats/ap2_dsk.c')
-rw-r--r-- | src/lib/formats/ap2_dsk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/formats/ap2_dsk.c b/src/lib/formats/ap2_dsk.c index 7be7150ad28..dc5931c1752 100644 --- a/src/lib/formats/ap2_dsk.c +++ b/src/lib/formats/ap2_dsk.c @@ -139,7 +139,7 @@ static FLOPPY_IDENTIFY(apple2_dsk_identify) if (size == expected_size) *vote = 100; - else if (size - expected_size < 8 && size - expected_size > -8) + else if (abs(size - expected_size) < 8) *vote = 90; /* tolerate images with up to eight fewer/extra bytes (bug #638) */ else *vote = 0; |