From 3f8b26c06aafbf0860faf58b12c2124677a816fd Mon Sep 17 00:00:00 2001 From: Jonathan Marler Date: Sun, 10 Sep 2017 09:16:27 -0600 Subject: [PATCH] Allow INVALID_HANDLE_VALUE for windows to work on 32-bit and 64-bit. (#457) --- std/os/windows/index.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/os/windows/index.zig b/std/os/windows/index.zig index 60069a701a..d9d799b0cf 100644 --- a/std/os/windows/index.zig +++ b/std/os/windows/index.zig @@ -72,7 +72,7 @@ pub const STD_OUTPUT_HANDLE = @maxValue(DWORD) - 11 + 1; /// The standard error device. Initially, this is the active console screen buffer, CONOUT$. pub const STD_ERROR_HANDLE = @maxValue(DWORD) - 12 + 1; -pub const INVALID_HANDLE_VALUE = @intToPtr(HANDLE, 0xFFFFFFFFFFFFFFFF); +pub const INVALID_HANDLE_VALUE = @intToPtr(HANDLE, @maxValue(usize)); pub const OVERLAPPED = extern struct { Internal: ULONG_PTR,