Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Oct 20, 2024
1 parent 88137d1 commit a6d29e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/event/sdl/Event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "Event.h"

#include "common/int.h"
#include "filesystem/NativeFile.h"
#include "filesystem/Filesystem.h"
#include "keyboard/sdl/Keyboard.h"
Expand Down Expand Up @@ -124,7 +125,7 @@ void Event::pump(float waitTimeout)
exceptionIfInRenderPass("love.event.pump");

int waitTimeoutMS = 0;
if (isinf(waitTimeout) || waitTimeout < 0.0f)
if (std::isinf(waitTimeout) || waitTimeout < 0.0f)
waitTimeoutMS = -1; // Wait forever.
else if (waitTimeout > 0.0f)
waitTimeoutMS = (int)std::min<int64>(LOVE_INT32_MAX, 1000LL * waitTimeout);
Expand Down

0 comments on commit a6d29e4

Please sign in to comment.