Skip to content

Commit 7f38dcd

Browse files
author
Vincent Rasquier
committed
Urgent fix
1 parent 3632f11 commit 7f38dcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

asm/classreader.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1963,17 +1963,17 @@ func (c ClassReader) readByte(offset int) byte {
19631963

19641964
func (c ClassReader) readUnsignedShort(offset int) int {
19651965
b := c.b
1966-
return int(((b[offset] & 0xFF) << 8) | (b[offset+1] & 0xFF))
1966+
return (int(b[offset]&0xFF) << 8) | int(b[offset+1]&0xFF)
19671967
}
19681968

19691969
func (c ClassReader) readShort(offset int) int16 {
19701970
b := c.b
1971-
return int16((((b[offset] & 0xFF) << 8) | (b[offset+1] & 0xFF)))
1971+
return ((int16(b[offset]&0xFF) << 8) | int16(b[offset+1]&0xFF))
19721972
}
19731973

19741974
func (c ClassReader) readInt(offset int) int {
19751975
b := c.b
1976-
return int(((b[offset] & 0xFF) << 24) | ((b[offset+1] & 0xFF) << 16) | ((b[offset+2] & 0xFF) << 8) | (b[offset+3] & 0xFF))
1976+
return int((b[offset]&0xFF))<<24 | int((b[offset+1]&0xFF))<<16 | int((b[offset+2]&0xFF))<<8 | int(b[offset+3]&0xFF)
19771977
}
19781978

19791979
func (c ClassReader) readLong(offset int) int64 {

0 commit comments

Comments
 (0)