Make name mangling reversable unambiguously (#11939) [bugfix]
This commit is contained in:
parent
5ef62fcb25
commit
e6cb7e34ef
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ const
|
||||||
proc toBase64a(s: cstring, len: int): string =
|
proc toBase64a(s: cstring, len: int): string =
|
||||||
## encodes `s` into base64 representation.
|
## encodes `s` into base64 representation.
|
||||||
result = newStringOfCap(((len + 2) div 3) * 4)
|
result = newStringOfCap(((len + 2) div 3) * 4)
|
||||||
result.add '_'
|
result.add "__"
|
||||||
var i = 0
|
var i = 0
|
||||||
while i < len - 2:
|
while i < len - 2:
|
||||||
let a = ord(s[i])
|
let a = ord(s[i])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue