aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}