Skip to content

Commit 8ead181

Browse files
committed
maxtime is of type int, so fix comparison to use 0 not 0.0f
1 parent 1955e5d commit 8ead181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modplug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ void ModPlug_Seek(ModPlugFile* file, int millisecond)
259259
millisecond = maxtime;
260260
maxpos = file->mSoundFile.GetMaxPosition();
261261
postime = 0.0f;
262-
if (maxtime != 0.0f)
262+
if (maxtime != 0)
263263
postime = (float)maxpos / (float)maxtime;
264264

265265
file->mSoundFile.SetCurrentPos((int)(millisecond * postime));

0 commit comments

Comments
 (0)