From 123656e2cde0e14a1090c7a76eda6468f570ac80 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 8 Dec 2014 19:21:16 +0800 Subject: [PATCH] fractions: fix comparison --- artiq/py2llvm/fractions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/py2llvm/fractions.py b/artiq/py2llvm/fractions.py index 6908cb808..1e0196ecb 100644 --- a/artiq/py2llvm/fractions.py +++ b/artiq/py2llvm/fractions.py @@ -193,7 +193,7 @@ class VFraction(VGeneric): diff = diff.auto_load(builder) a = builder.extract_value(diff, 0) zero = ll.Constant(ll.IntType(64), 0) - ssa_r = builder.icmp(icmp, a, zero) + ssa_r = builder.icmp_signed(icmp, a, zero) r.auto_store(builder, ssa_r) return r