aboutsummaryrefslogtreecommitdiff
path: root/ber/new/marshal.go
diff options
context:
space:
mode:
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)))
}
}