Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into anlhord-master
  • Loading branch information
khaf committed Feb 17, 2015
2 parents 6bceed4 + 4140535 commit 682e2d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/buffer/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var Arch64Bits bool
var Arch32Bits bool

func init() {
if int(^0) == 0xffffffff {
if 0 == ^uint(0xffffffff) {
sizeOfInt = 4
} else {
sizeOfInt = 8
Expand Down
2 changes: 1 addition & 1 deletion value.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var sizeOfInt32 = uintptr(4)
var sizeOfInt64 = uintptr(8)

func init() {
if int(^0) == 0xffffffff {
if 0 == ^uint(0xffffffff) {
sizeOfInt = 4
} else {
sizeOfInt = 8
Expand Down

0 comments on commit 682e2d3

Please sign in to comment.