fixes isNegative only for signed integer
This commit is contained in:
parent
07411e31a5
commit
962932dd6a
|
@ -94,7 +94,7 @@ func isZero*(x: SomeBigInteger): bool {.inline.} =
|
|||
## false otherwise
|
||||
x.data.isZero
|
||||
|
||||
func isNegative*(x: SomeBigInteger): bool {.inline.} =
|
||||
func isNegative*(x: Stint): bool {.inline.} =
|
||||
## Returns true if input is negative (< 0)
|
||||
## false otherwise
|
||||
x.data.isNegative
|
||||
|
|
Loading…
Reference in New Issue