diff options
author | Julien Dessaux | 2021-10-08 23:11:06 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-10-08 23:11:06 +0200 |
commit | 4863af23b5280354293524191cba82f09403b741 (patch) | |
tree | cfd510775bc16cbe011aa42ec789008a16e284b1 /src/defaultIO.nim | |
parent | Cosmetics (diff) | |
download | nimfunge98-4863af23b5280354293524191cba82f09403b741.tar.gz nimfunge98-4863af23b5280354293524191cba82f09403b741.tar.bz2 nimfunge98-4863af23b5280354293524191cba82f09403b741.zip |
Fixed failing mycology tests
Diffstat (limited to '')
-rw-r--r-- | src/defaultIO.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/defaultIO.nim b/src/defaultIO.nim index ccf4476..1c3e2ca 100644 --- a/src/defaultIO.nim +++ b/src/defaultIO.nim @@ -34,7 +34,10 @@ proc defaultDecimalInput*(): int = return result proc defaultCharacterOutput*(v: int) = - discard stdout.writeChars(@[v.char()], 0, 1) + try: + discard stdout.writeChars(@[v.char()], 0, 1) + except RangeDefect: + discard stdout.writeBuffer(unsafeAddr v, 4) proc defaultDecimalOutput*(v: int) = stdout.write(&"{v} ") |