Make toHex work for uints (#5423)

This commit is contained in:
Dennis Felsing
2017-02-24 16:48:22 +01:00
committed by Andreas Rumpf
parent 469a7d258c
commit 4af2c26c91

View File

@@ -898,7 +898,7 @@ proc toHex*(x: BiggestInt, len: Positive): string {.noSideEffect,
proc toHex*[T](x: T): string =
## 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,
rtl, extern: "nsuIntToStr".} =