glfw: update to latest Zig API

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-06-25 00:33:18 -07:00
parent 833081e47a
commit 4fdd12d93a

View file

@ -433,7 +433,7 @@ pub inline fn waitEventsTimeout(timeout: f64) void {
internal_debug.assertInitialized(); internal_debug.assertInitialized();
std.debug.assert(!std.math.isNan(timeout)); std.debug.assert(!std.math.isNan(timeout));
std.debug.assert(timeout >= 0); std.debug.assert(timeout >= 0);
std.debug.assert(timeout <= std.math.f64_max); std.debug.assert(timeout <= std.math.floatMax(f64));
c.glfwWaitEventsTimeout(timeout); c.glfwWaitEventsTimeout(timeout);
} }