Bugfix: Len error for uint16
This commit is contained in:
parent
45dbd7cbca
commit
c6fd661827
|
@ -58,7 +58,7 @@ func UnmarshalUint16(in []byte) (ret uint16, n int, err error) {
|
||||||
return 0, 0, errors.New("ssob: Invalid input to decode uint16")
|
return 0, 0, errors.New("ssob: Invalid input to decode uint16")
|
||||||
}
|
}
|
||||||
|
|
||||||
return binary.BigEndian.Uint16(in[0:1]), 2, nil
|
return binary.BigEndian.Uint16(in[0:2]), 2, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func UnmarshalInt32(in []byte) (ret int32, n int, err error) {
|
func UnmarshalInt32(in []byte) (ret int32, n int, err error) {
|
||||||
|
|
Loading…
Reference in New Issue