diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-25 11:31:57 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-25 11:31:57 -0400 |
| commit | eb0188a0999b7a7c1746b06a6c22e147cf3f1ac6 (patch) | |
| tree | e16c9021de42396061f3c01bf7205aa62f039b09 /common_windows.go | |
| parent | 0d23bda925359ae6d240b25f20dc544207ce8106 (diff) | |
Changed most instances of var to const in the Windows code. Only one left...
Diffstat (limited to 'common_windows.go')
| -rw-r--r-- | common_windows.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common_windows.go b/common_windows.go index 85dce45..f9289cb 100644 --- a/common_windows.go +++ b/common_windows.go @@ -76,6 +76,12 @@ type _RECT struct { bottom int32 } +// 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) +func negConst(c int) uintptr { + return uintptr(c) +} + // Predefined cursor resource IDs. const ( _IDC_APPSTARTING = 32650 |
