Make name mangling reversable unambiguously (#11939) [bugfix]

This commit is contained in:
Clyybber
2019-08-14 08:11:50 +02:00
committed by Andreas Rumpf
parent 5ef62fcb25
commit e6cb7e34ef

View File

@@ -98,7 +98,7 @@ const
proc toBase64a(s: cstring, len: int): string =
## encodes `s` into base64 representation.
result = newStringOfCap(((len + 2) div 3) * 4)
result.add '_'
result.add "__"
var i = 0
while i < len - 2:
let a = ord(s[i])