From d154bcf90a1053dc4e3b038bc6918ab60063aa81 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Mon, 22 Jul 2019 10:13:19 +0200 Subject: [PATCH] reexport isEven and friends --- stint/intops.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stint/intops.nim b/stint/intops.nim index 5d22664..ba75b61 100644 --- a/stint/intops.nim +++ b/stint/intops.nim @@ -86,6 +86,9 @@ func `==`*(x, y: SomeBigInteger): bool {.inline.} = x.data == y.data export `<`, `<=`, `==` # Address Generic Instantiation too nested: https://github.com/status-im/nim-stint/pull/66#issuecomment-427557655 +# TODO these exports are needed for the SomeInteger versions - move to stew? +export isZero, isOdd, isEven, isNegative + func isZero*(x: SomeBigInteger): bool {.inline.} = ## Returns true if input is zero ## false otherwise