diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2015-08-09 13:23:55 +0200 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2015-08-09 13:23:55 +0200 |
commit | bd2a9d7540b13f6a3edc748d5e91e267b1b03d41 (patch) | |
tree | c2f7a4b8b3e2096e9776a3ed9ea6621ddf2e0348 | |
parent | 5b4b5cb8510eabd2ee8e6bb9bd115e7fca9e7dc8 (diff) |
gofmt
-rw-r--r-- | ber/base128.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ber/base128.go b/ber/base128.go index 7e44d76..4777651 100644 --- a/ber/base128.go +++ b/ber/base128.go @@ -9,8 +9,7 @@ func base128(n int) (b []byte) { l++ } for i := l - 1; i >= 0; i-- { - o := byte(n >> uint(i*7)) - o &= 0x7F + o := byte(n>>uint(i*7)) & 0x7f if i != 0 { o |= 0x80 } @@ -24,7 +23,7 @@ func debase128(b []byte) (i, n int) { i <<= 7 i |= int(v & 0x7f) n++ - if v & 0x80 == 0 { + if v&0x80 == 0 { return } } |