diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2015-06-30 20:01:32 +0200 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2015-06-30 20:01:32 +0200 |
commit | 784632de3fb2af5ee5bc279a3f9ad0fc39321824 (patch) | |
tree | f6143fdc71c07c77631d849da2db6955107053e8 /ber/class.go | |
parent | d392aba19ba8fd8bf648cc97439889e3ce97c836 (diff) |
Fix uint parser
Diffstat (limited to 'ber/class.go')
-rw-r--r-- | ber/class.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ber/class.go b/ber/class.go index 0839c05..0a98b80 100644 --- a/ber/class.go +++ b/ber/class.go @@ -119,7 +119,7 @@ func Ident(b []byte) (Class, Kind, Tag, int) { func Length(b []byte) (int, int) { if b[0] & 0x80 != 0 { - l := b[0] & 0x7f + l := int(b[0] & 0x7f) i := unmarshalUint(b[1:l+1]) return int(i), int(l+1) } else { |