parent
d34233b501
commit
36e6ca16d1
1 changed files with 1 additions and 1 deletions
|
|
@ -820,7 +820,7 @@ proc toHex*(x: BiggestInt, len: Positive): string {.noSideEffect,
|
||||||
# handle negative overflow
|
# handle negative overflow
|
||||||
if n == 0 and x < 0: n = -1
|
if n == 0 and x < 0: n = -1
|
||||||
|
|
||||||
proc toHex*[T](x: T): string =
|
proc toHex*[T: SomeInteger](x: T): string =
|
||||||
## Shortcut for ``toHex(x, T.sizeOf * 2)``
|
## Shortcut for ``toHex(x, T.sizeOf * 2)``
|
||||||
toHex(BiggestInt(x), T.sizeOf * 2)
|
toHex(BiggestInt(x), T.sizeOf * 2)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue