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 23373ef..ee28b4f 100644
--- a/ber/int.go
+++ b/ber/int.go
@@ -16,7 +16,7 @@ func UnmarshalInt(b []byte) (i int) {
func UnmarshalUint(b []byte) (i uint) {
for n, v := range b {
- i += uint(v) << uint(n*8)
+ i += uint(v) << uint((len(b)-n-1)*8)
}
return
}