From f2cde765c3e05fec7dad911197c48c27b7386812 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 26 Feb 2022 21:45:37 -0700 Subject: [PATCH] glfw: correct getCocoaWindow return type Signed-off-by: Stephen Gutekanst --- glfw/src/native.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/src/native.zig b/glfw/src/native.zig index 81d30a06..94261afa 100644 --- a/glfw/src/native.zig +++ b/glfw/src/native.zig @@ -167,7 +167,7 @@ pub fn Native(comptime options: BackendOptions) type { /// Possible errors include glfw.Error.NotInitalized. /// /// thread_safety: This function may be called from any thread. Access is not synchronized. - pub fn getCocoaWindow(window: Window) u32 { + pub fn getCocoaWindow(window: Window) ?*anyopaque { internal_debug.assertInitialized(); const win = native.glfwGetCocoaWindow(@ptrCast(*native.GLFWwindow, window.handle)); getError() catch |err| return switch (err) {