From 962932dd6af19681b2661a52053e8f0b8ae5a810 Mon Sep 17 00:00:00 2001 From: andri lim Date: Tue, 22 Oct 2019 17:16:21 +0700 Subject: [PATCH] fixes isNegative only for signed integer --- stint/intops.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stint/intops.nim b/stint/intops.nim index 9751f05..70a6f83 100644 --- a/stint/intops.nim +++ b/stint/intops.nim @@ -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