replace some runtime repr in stdlib for gc:arc (#12716)
This commit is contained in:
parent
8debf79837
commit
bd8f49cbd3
3 changed files with 5 additions and 4 deletions
|
|
@ -1206,7 +1206,8 @@ proc parseHexStr*(s: string): string {.noSideEffect, procvar,
|
|||
for pos, c in s:
|
||||
let val = hexCharToValueMap[ord(c)].ord
|
||||
if val == 17:
|
||||
raise newException(ValueError, "Invalid hex char " & repr(c))
|
||||
raise newException(ValueError, "Invalid hex char `" &
|
||||
c & "` (ord " & $c.ord & ")")
|
||||
if pos mod 2 == 0:
|
||||
buf = val
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue