Make toHex work for uints (#5423)
This commit is contained in:
parent
469a7d258c
commit
4af2c26c91
1 changed files with 1 additions and 1 deletions
|
|
@ -898,7 +898,7 @@ proc toHex*(x: BiggestInt, len: Positive): string {.noSideEffect,
|
||||||
|
|
||||||
proc toHex*[T](x: T): string =
|
proc toHex*[T](x: T): string =
|
||||||
## Shortcut for ``toHex(x, T.sizeOf * 2)``
|
## Shortcut for ``toHex(x, T.sizeOf * 2)``
|
||||||
toHex(x, T.sizeOf * 2)
|
toHex(BiggestInt(x), T.sizeOf * 2)
|
||||||
|
|
||||||
proc intToStr*(x: int, minchars: Positive = 1): string {.noSideEffect,
|
proc intToStr*(x: int, minchars: Positive = 1): string {.noSideEffect,
|
||||||
rtl, extern: "nsuIntToStr".} =
|
rtl, extern: "nsuIntToStr".} =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue