authorgravatar for jens.goldberg@gmail.comJens Goldberg <jens.goldberg@gmail.com> 2020-11-22 14:24:36+00:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-11-22 14:24:36+00:00
logbbc2c7c268bae51c5cafc1c44f82eb056839ae1a
tree6f812a5a3b33e12b5a12afedc4b58c71e4fed29a
parentfcf3f61c287eb07a5a9587c6fc3d4c7aa47def11
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Ensure the dynamic function has the same type as the static one

Co-authored-by: daurnimator <quae@daurnimator.com>

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/os/windows/user32.zig+1-1
......@@ -12,7 +12,7 @@ const unexpectedError = windows.unexpectedError;
1212const GetLastError = windows.kernel32.GetLastError;
1313const SetLastError = windows.kernel32.SetLastError;
1414
15fn selectSymbol(comptime function_static: anytype, function_dynamic: anytype, comptime os: std.Target.Os.WindowsVersion) @TypeOf(function_static) {
15fn selectSymbol(comptime function_static: anytype, function_dynamic: @TypeOf(function_static), comptime os: std.Target.Os.WindowsVersion) @TypeOf(function_static) {
1616 comptime {
1717 const sym_ok = builtin.Target.current.os.isAtLeast(.windows, os);
1818 if (sym_ok == true) return function_static;