Skip to content

Commit

Permalink
[fix] Implicit conversion to cstring in JS backend
Browse files Browse the repository at this point in the history
  • Loading branch information
aruZeta committed Sep 20, 2022
1 parent 5fd51e9 commit 5a6760b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QRgen/private/DrawedQRCode/print.nim
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ proc printTerminal*(self: DrawedQRCode) =
result.add "\n"
result.add "\n\n\n\n\n"
when defined(js):
console.log result
console.log result.cstring
else:
stdout.write result

Expand Down

0 comments on commit 5a6760b

Please sign in to comment.