diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-06-10 12:40:41 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-06-10 14:03:33 +0200 |
commit | 44feea1957f6f3ff28917625223e610fe2807c49 (patch) | |
tree | fbbb60c811c03a50373350b6e0aabbe4f87497db /include/systools/win32 | |
parent | 9a33bfdacd9f74aefad545141c896a8bc23c1ffc (diff) |
mingw64: don't cast handle to 32-bit int in a macro
Change-Id: I06063d3c171256c54151be04c810b79bd2d194e1
Diffstat (limited to 'include/systools/win32')
-rw-r--r-- | include/systools/win32/uwinapi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/systools/win32/uwinapi.h b/include/systools/win32/uwinapi.h index 5c4c88c415f1..4aa6997d7a87 100644 --- a/include/systools/win32/uwinapi.h +++ b/include/systools/win32/uwinapi.h @@ -51,7 +51,7 @@ inline bool IsValidHandle(HANDLE handle) #else /* __cplusplus */ -#define IsValidHandle(Handle) ((DWORD)(Handle) + 1 > 1) +#define IsValidHandle(Handle) ((DWORD_PTR)(Handle) + 1 > 1) #endif /* __cplusplus */ |