aboutsummaryrefslogtreecommitdiff
path: root/ber/int.go
diff options
context:
space:
mode:
Diffstat (limited to 'ber/int.go')
-rw-r--r--ber/int.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ber/int.go b/ber/int.go
index 5bfcd89..bbf93ea 100644
--- a/ber/int.go
+++ b/ber/int.go
@@ -34,7 +34,7 @@ func unmarshalInt(b []byte) (i int64) {
func unmarshalUint(b []byte) (i int64) {
for n, v := range b {
- i += int64(v) << uint((n-1)*8)
+ i += int64(v) << uint(n*8)
}
return
}