Explorar el Código

Fix bit shifting for readLengthEncodedInteger

Xiuming Chen hace 12 años
padre
commit
9860999924
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      utils.go

+ 1 - 1
utils.go

@@ -657,7 +657,7 @@ func readLengthEncodedInteger(b []byte) (uint64, bool, int) {
 	case 0xfe:
 		return uint64(b[1]) | uint64(b[2])<<8 | uint64(b[3])<<16 |
 				uint64(b[4])<<24 | uint64(b[5])<<32 | uint64(b[6])<<40 |
-				uint64(b[7])<<48 | uint64(b[8])<<54,
+				uint64(b[7])<<48 | uint64(b[8])<<56,
 			false, 9
 	}