From 108e965580cbbae0d5029b7cc2ca592bd955883e Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 26 Sep 2015 00:29:02 +0200 Subject: Add len test --- ber/new/marshal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ber/new/marshal.go') diff --git a/ber/new/marshal.go b/ber/new/marshal.go index c45e61b..45841ba 100644 --- a/ber/new/marshal.go +++ b/ber/new/marshal.go @@ -16,7 +16,7 @@ func (s *state) marshalLen(val int) { n := lenLen(val) s.WriteByte(byte(n) | 0x80) for ; n > 0; n-- { - s.WriteByte(byte(val >> uint(n-1) * 8)) + s.WriteByte(byte(val >> uint((n-1)*8))) } } -- cgit v1.2.3