aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-08-08 11:09:38 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-08-08 11:09:38 +0200
commit0eb96c8c2494cfa093dd289efa35be9b0db6727c (patch)
tree24904276e2f686d81f45b0a91e0bb86dfc5fff0b
parentb92324b847348c0bcaedc7628ba712fa0509e5fc (diff)
Fix uint
-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
}