Skip to content

Commit

Permalink
use a signed int64 instead of uint64 as large header
Browse files Browse the repository at this point in the history
  • Loading branch information
abaaij committed Nov 17, 2017
1 parent 0973cab commit ec0d9d6
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((uint64(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((uint64(v) & 0xff000000) >> 24)
buf[o] = byte((int64(v) & 0xff000000) >> 24)
o++
}

Expand Down

0 comments on commit ec0d9d6

Please sign in to comment.