diff options
author | Araq <rumpf_a@web.de> | 2021-07-26 09:57:19 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2021-07-26 09:57:19 +0200 |
commit | ff280c012731b1978005a743eec96cd885331475 (patch) | |
tree | 56f7222986c7c84900f54fdd40cf7b5c3c1cf171 /compiler/msgs.nim | |
parent | 10da888c075acb901b57ba51e4400df6cdf3efd6 (diff) | |
download | Nim-ff280c012731b1978005a743eec96cd885331475.tar.gz |
added missing .inline for toCChar
Diffstat (limited to 'compiler/msgs.nim')
-rw-r--r-- | compiler/msgs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim index 242b06587..20a55daee 100644 --- a/compiler/msgs.nim +++ b/compiler/msgs.nim @@ -27,7 +27,7 @@ proc flushDot*(conf: ConfigRef) = conf.lastMsgWasDot.excl stdOrrKind write(stdOrr, "\n") -proc toCChar*(c: char; result: var string) = +proc toCChar*(c: char; result: var string) {.inline.} = case c of '\0'..'\x1F', '\x7F'..'\xFF': result.add '\\' |