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
commit 4af2c26c91

View file

@ -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".} =