mirror of
https://github.com/status-im/nim-json-serialization.git
synced 2025-02-16 12:07:35 +00:00
Remove a string-to-cstring conversion warning on Nim 1.6
This commit is contained in:
parent
bedbe6595a
commit
dbe0f1ae51
@ -593,7 +593,7 @@ proc readValue*[T](r: var JsonReader, value: var T)
|
||||
r.skipSingleJsValue()
|
||||
else:
|
||||
const typeName = typetraits.name(T)
|
||||
r.raiseUnexpectedField(r.lexer.strVal, string typeName)
|
||||
r.raiseUnexpectedField(r.lexer.strVal, cstring typeName)
|
||||
if r.lexer.lazyTok == tkComma:
|
||||
r.lexer.next()
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user