From 0eb96c8c2494cfa093dd289efa35be9b0db6727c Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 8 Aug 2015 11:09:38 +0200 Subject: Fix uint --- ber/int.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3