Skip to content

Commit 116b770

Browse files
star-tek-mbVexu
authored andcommitted
fix selectSymbol function pointers
1 parent 7208e1f commit 116b770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/os/windows/user32.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const POINT = windows.POINT;
2828
const HCURSOR = windows.HCURSOR;
2929
const HBRUSH = windows.HBRUSH;
3030

31-
fn selectSymbol(comptime function_static: anytype, function_dynamic: @TypeOf(function_static), comptime os: std.Target.Os.WindowsVersion) @TypeOf(function_static) {
31+
fn selectSymbol(comptime function_static: anytype, function_dynamic: *const @TypeOf(function_static), comptime os: std.Target.Os.WindowsVersion) *const @TypeOf(function_static) {
3232
comptime {
3333
const sym_ok = builtin.os.isAtLeast(.windows, os);
3434
if (sym_ok == true) return function_static;

0 commit comments

Comments
 (0)