Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/19/02 01:11
Read: times


 
#34701 - RE: Possible sdcc bug
Look at these 2 lines of code:

It DOES NOT MATTER if direction is 0 or 1,
the resulting values in area and yy will be the same !

if(direction==0) area+=(yy+1);yy++;
if(direction==1)area+=yy;

This is why case statements are preferred.

Is this what you really want ?

if(direction==0) area+=(yy+1);
yy++;
if(direction==1)area+=yy;


List of 8 messages in thread
TopicAuthorDate
Possible sdcc bug            01/01/70 00:00      
RE: Possible sdcc bug            01/01/70 00:00      
RE: Possible sdcc bug            01/01/70 00:00      
RE: Possible sdcc bug            01/01/70 00:00      
RE: Possible sdcc bug            01/01/70 00:00      
RE: Possible sdcc bug -- J.            01/01/70 00:00      
RE: Possible sdcc bug -- J.            01/01/70 00:00      
RE: Possible sdcc bug            01/01/70 00:00      

Back to Subject List