m68k: fix floatx80_mod() (Coverity CID1390568)
commit5a73e7f313da0e4657bcac61b533ced71b0d0224
authorLaurent Vivier <laurent@vivier.eu>
Tue, 8 May 2018 20:39:37 +0000 (8 22:39 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 14 May 2018 17:13:07 +0000 (14 19:13 +0200)
tree6c25a52f774f715a8a337d4682f0ef2b14430e77
parent7a9180b77eca258ab418ec00ab397392e70e55d9
m68k: fix floatx80_mod() (Coverity CID1390568)

Update the variable checked by the loop condition (expDiff).
Backport the update from Previous.

Fixes: 591596b77a ("target/m68k: add fmod/frem")
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
Message-Id: <20180508203937.16796-1-laurent@vivier.eu>
target/m68k/softfloat.c