summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/upd765_dsk.cpp
diff options
context:
space:
mode:
author therealmogminer@gmail.com <therealmogminer@gmail.com>2015-11-09 13:50:57 +0100
committer therealmogminer@gmail.com <therealmogminer@gmail.com>2015-11-09 13:50:57 +0100
commitbf5cee9b9ed3eb4123b0034c4fd1b9ccbda4c2ac (patch)
tree130b0ba80c4efb6d8ebadb62c6ce625aedb356d1 /src/lib/formats/upd765_dsk.cpp
parent7b5119e1667c1a0844c268169e74c69c5a40f5c3 (diff)
- Fix PVS-Studio warning V562, "It's odd to compare a bool type value with
a value of 0/1" [MooglyGuy]
Diffstat (limited to 'src/lib/formats/upd765_dsk.cpp')
-rw-r--r--src/lib/formats/upd765_dsk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/formats/upd765_dsk.cpp b/src/lib/formats/upd765_dsk.cpp
index 45a05d37b86..eef28c23a4b 100644
--- a/src/lib/formats/upd765_dsk.cpp
+++ b/src/lib/formats/upd765_dsk.cpp
@@ -304,7 +304,7 @@ bool upd765_format::save(io_generic *io, floppy_image *image)
// Handling enough tracks is better than not
if(cn.track_count >= tracks && cc.track_count < tracks)
goto change;
- else if(cn.track_count >= tracks && cc.track_count < tracks)
+ else if(cc.track_count >= tracks && cn.track_count < tracks)
goto dont_change;
// Both are on the same side of the track count, so closest is best