diff options
| author | Jens Goldberg <jens.goldberg@gmail.com> | 2020-11-22 14:24:36 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-22 14:24:36 +0000 |
| commit | bbc2c7c268bae51c5cafc1c44f82eb056839ae1a (patch) | |
| tree | 6f812a5a3b33e12b5a12afedc4b58c71e4fed29a /lib/std | |
| parent | fcf3f61c287eb07a5a9587c6fc3d4c7aa47def11 (diff) | |
| download | zig-bbc2c7c268bae51c5cafc1c44f82eb056839ae1a.tar.gz zig-bbc2c7c268bae51c5cafc1c44f82eb056839ae1a.zip | |
Ensure the dynamic function has the same type as the static one
Co-authored-by: daurnimator <quae@daurnimator.com>
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/os/windows/user32.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/os/windows/user32.zig b/lib/std/os/windows/user32.zig index 479ac86532..96b7c1e04a 100644 --- a/lib/std/os/windows/user32.zig +++ b/lib/std/os/windows/user32.zig @@ -12,7 +12,7 @@ const unexpectedError = windows.unexpectedError; const GetLastError = windows.kernel32.GetLastError; const SetLastError = windows.kernel32.SetLastError; -fn selectSymbol(comptime function_static: anytype, function_dynamic: anytype, comptime os: std.Target.Os.WindowsVersion) @TypeOf(function_static) { +fn selectSymbol(comptime function_static: anytype, function_dynamic: @TypeOf(function_static), comptime os: std.Target.Os.WindowsVersion) @TypeOf(function_static) { comptime { const sym_ok = builtin.Target.current.os.isAtLeast(.windows, os); if (sym_ok == true) return function_static; |
