diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-01-17 20:27:14 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-01-17 20:27:14 +0000 |
| commit | 367d307dc48fb4ee6815141d2f22b69a0996eb66 (patch) | |
| tree | 18257783e6bfa64d2b9982510bf2262d03948dab /core/sys | |
| parent | cb59c1cf0805166d8b3230fea47d8674dacf157a (diff) | |
Fix conversion of untyped integers to pointers
Diffstat (limited to 'core/sys')
| -rw-r--r-- | core/sys/windows.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/sys/windows.odin b/core/sys/windows.odin index 959f96a54..df9f5aea7 100644 --- a/core/sys/windows.odin +++ b/core/sys/windows.odin @@ -19,7 +19,7 @@ BOOL :: i32; WNDPROC :: type proc(HWND, u32, WPARAM, LPARAM) -> LRESULT #cc_c; -INVALID_HANDLE_VALUE :: (-1 as int) as HANDLE; +INVALID_HANDLE_VALUE :: ~int(0) as HANDLE; FALSE: BOOL : 0; TRUE: BOOL : 1; @@ -46,7 +46,7 @@ WM_KEYUP :: 0x0101; PM_REMOVE :: 1; -COLOR_BACKGROUND :: 1 as HBRUSH; +COLOR_BACKGROUND :: HBRUSH(int(1)); BLACK_BRUSH :: 4; SM_CXSCREEN :: 0; |