zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 18b8738069268cc913bbae9580d2d170618a2ae9 (tree)
parent 093e10b66e5db5fcbccf941b4ffdab6330a83faa
Author: Michal Ziulek <michalziulek@gmail.com>
Date:   Thu, 22 Jul 2021 01:28:21 +0200

Fixed compile error: 'bMenu' needs to casted. (#9426)


Diffstat:
Mlib/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 @@ -1336,7 +1336,7 @@ pub extern "user32" fn AdjustWindowRectEx(lpRect: *RECT, dwStyle: DWORD, bMenu: pub fn adjustWindowRectEx(lpRect: *RECT, dwStyle: u32, bMenu: bool, dwExStyle: u32) !void { assert(dwStyle & WS_OVERLAPPED == 0); - if (AdjustWindowRectEx(lpRect, dwStyle, bMenu, dwExStyle) == 0) { + if (AdjustWindowRectEx(lpRect, dwStyle, @boolToInt(bMenu), dwExStyle) == 0) { switch (GetLastError()) { .INVALID_PARAMETER => unreachable, else => |err| return windows.unexpectedError(err),