Menu

#160 Comparison with zero

closed-fixed
nobody
8
2013-05-25
2001-10-03
No

Severe bug: several library functions calculate wrong

foo (long l)
{
if (l < 0)
return 1;
return 0;
}

generates this code:

mov r2,dpl
mov r3,dph
mov r4,b
mov r5,a
clr c
jnc 00102$

Discussion

  • Johan Knol

    Johan Knol - 2001-10-04

    Logged In: YES
    user_id=63512

    fixed in SDCCsymt.c

     
  • Johan Knol

    Johan Knol - 2001-10-04
    • milestone: --> fixed
    • status: open --> closed-fixed
     

Log in to post a comment.