Skip to content

Commit

Permalink
Merge pull request #38 from andrebaaij/master
Browse files Browse the repository at this point in the history
 Fixed constant overflows int
  • Loading branch information
dareid authored Dec 1, 2017
2 parents 8c781b5 + ec0d9d6 commit b5101fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assign/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func setHdrOffset(valueType constants.DataType, valueLength int, buf []byte, o i
o++

// extra large header content
buf[o] = byte((valueLength & 0xff000000) >> 24)
buf[o] = byte((int64(valueLength) & 0xff000000) >> 24)
o++
buf[o] = 0
o++
Expand All @@ -45,7 +45,7 @@ func SetInt(v int, buf []byte, o int) {
o++
buf[o] = byte((v & 0xff0000) >> 16)
o++
buf[o] = byte((v & 0xff000000) >> 24)
buf[o] = byte((int64(v) & 0xff000000) >> 24)
o++
}

Expand Down

0 comments on commit b5101fd

Please sign in to comment.