summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/b64.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/b64.go b/lib/b64.go
index d37f710..6b98d42 100644
--- a/lib/b64.go
+++ b/lib/b64.go
@@ -14,7 +14,7 @@ func HexToBase64(hex string) string {
HexCharToDec(hb[i+1])<<4 |
HexCharToDec(hb[i+2]))
b64 += encode(a >> 6)
- b64 += encode(a & 0b111111)
+ b64 += encode(a & 0x3f)
}
return b64
}