From 116b7708099846e9ad789514504341b29bcce99c Mon Sep 17 00:00:00 2001 From: star-tek-mb Date: Thu, 12 Jan 2023 16:51:06 +0500 Subject: [PATCH] fix selectSymbol function pointers --- lib/std/os/windows/user32.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/os/windows/user32.zig b/lib/std/os/windows/user32.zig index b771d01e06..2566d0179f 100644 --- a/lib/std/os/windows/user32.zig +++ b/lib/std/os/windows/user32.zig @@ -28,7 +28,7 @@ const POINT = windows.POINT; const HCURSOR = windows.HCURSOR; const HBRUSH = windows.HBRUSH; -fn selectSymbol(comptime function_static: anytype, function_dynamic: @TypeOf(function_static), comptime os: std.Target.Os.WindowsVersion) @TypeOf(function_static) { +fn selectSymbol(comptime function_static: anytype, function_dynamic: *const @TypeOf(function_static), comptime os: std.Target.Os.WindowsVersion) *const @TypeOf(function_static) { comptime { const sym_ok = builtin.os.isAtLeast(.windows, os); if (sym_ok == true) return function_static;