aboutsummaryrefslogtreecommitdiff
path: root/ber/new/marshal.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-09-26 00:29:02 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-09-26 00:29:02 +0200
commit108e965580cbbae0d5029b7cc2ca592bd955883e (patch)
treeb031c9ab06f9913f2bb74f5e463ca1f0eea28092 /ber/new/marshal.go
parent4083fc0161bcf1a669ad0af50145ed92c8b776ce (diff)
Add len test
Diffstat (limited to 'ber/new/marshal.go')
-rw-r--r--ber/new/marshal.go2
1 files changed, 1 insertions, 1 deletions
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)))
}
}