diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-04 19:06:16 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-04 19:06:16 -0400 |
| commit | bd08967a5a1a27995f8390d8e2aeb247cdf01347 (patch) | |
| tree | b7981ffb6473fdc790b976d891652a8f126bae76 /common_windows.go | |
| parent | ec5c4594b2305f6e98d7e79a11ac8010e6366667 (diff) | |
Removed TODOs about sign extension on Windows; situation resolved.
Diffstat (limited to 'common_windows.go')
| -rw-r--r-- | common_windows.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common_windows.go b/common_windows.go index f3536dc..41a123f 100644 --- a/common_windows.go +++ b/common_windows.go @@ -62,7 +62,7 @@ type _RECT struct { } // Go doesn't allow negative constants to be forced into unsigned types at compile-time; this will do it at runtime. -// TODO make sure sign extension works fine here (check Go's rules and ABI sign extension rules) +// This is safe; see http://stackoverflow.com/questions/24022225/what-are-the-sign-extension-rules-for-calling-windows-api-functions-stdcall-t func negConst(c int) uintptr { return uintptr(c) } |
