fractions: fix comparison

This commit is contained in:
Sebastien Bourdeauducq 2014-12-08 19:21:16 +08:00
parent 72c24ba320
commit 123656e2cd
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ class VFraction(VGeneric):
diff = diff.auto_load(builder) diff = diff.auto_load(builder)
a = builder.extract_value(diff, 0) a = builder.extract_value(diff, 0)
zero = ll.Constant(ll.IntType(64), 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) r.auto_store(builder, ssa_r)
return r return r