aboutsummaryrefslogtreecommitdiff
path: root/ber
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-09-23 21:30:20 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-09-23 21:30:20 +0200
commit3d1b6e8867073362628aadba1ad3ebfb97b2cfc4 (patch)
treec652926fd95fe8983a4363c69802baf28df42dc9 /ber
parent700437a25cf6508326541c2a56c26d747b9f3f76 (diff)
minor cleanup
Diffstat (limited to 'ber')
-rw-r--r--ber/class.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ber/class.go b/ber/class.go
index 279b3db..b734964 100644
--- a/ber/class.go
+++ b/ber/class.go
@@ -139,7 +139,6 @@ func Private(b []byte) (int, bool) {
func MarshalClass(c Class, k Kind, t Tag) []byte {
tag := base128(int(t))
- tag[0] |= byte(c)
- tag[0] |= byte(k)
+ tag[0] |= byte(c) | byte(k)
return tag
}