Fixes base64 crash.
This commit is contained in:
parent
821fe72ff5
commit
030c2d6deb
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ template encodeInternal(s: expr, lineLen: int, newLine: string): stmt {.immediat
|
|||
if r+4 != result.len:
|
||||
setLen(result, r+4)
|
||||
else:
|
||||
assert(r == result.len)
|
||||
#assert(r == result.len)
|
||||
|
||||
proc encode*[T:TInteger|char](s: openarray[T], lineLen = 75, newLine="\13\10"): string =
|
||||
## encodes `s` into base64 representation. After `lineLen` characters, a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue