Skip to content

Commit

Permalink
(0n=0%0.) now yields 1
Browse files Browse the repository at this point in the history
  • Loading branch information
tavmem committed Dec 16, 2014
1 parent 1bcd810 commit c2f688d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vc.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ K equals(K a, K b)
I zn=at>0?bn:an;
K z=newK(t,zn); //oom
#define EQ(x, y) (x) == (y)
if (2==AT && 2==BT) SCALAR_EXPR_FUN(FC, kI(z), kF(a), kF(b), ?0:1)
if (2==AT && 2==BT) { SCALAR_EXPR_FUN(FC, kI(z), kF(a), kF(b), ?0:1)
DO(zn, if(kF(a)[i]!=kF(a)[i] && kF(b)[i]!=kF(b)[i]) kI(z)[i]=1)}
else if(2==AT && 1==BT) SCALAR_EXPR_FUN(FC, kI(z), kF(a), kI(b), ?0:1)
else if(1==AT && 2==BT) SCALAR_EXPR_FUN(FC, kI(z), kI(a), kF(b), ?0:1)
else if(1==AT && 1==BT) SCALAR_OP_CASE(EQ, kI(z), kI(a), kI(b))
Expand Down

0 comments on commit c2f688d

Please sign in to comment.