Browse Source

Asset slice length in getUint32

Connor Peet 9 years ago
parent
commit
7bd399d5ef
1 changed files with 1 additions and 0 deletions
  1. 1 0
      block.go

+ 1 - 0
block.go

@@ -132,6 +132,7 @@ func CompressBlock(src, dst []byte, soffset int) (int, error) {
 // inefficient but it is significantly faster on littleEndian machines,
 // which include x84, amd64, and some ARM processors.
 func getUint32(b []byte) uint32 {
+	_ = b[3]
 	if isLittleEndian {
 		return *(*uint32)(unsafe.Pointer(&b))
 	}