it failed with version ???
but i do know it failed with 3.190 and later
I put this code to work it out now
Code:
if(n & 1) LcdD4 = 1; else LcdD4 = 0;
Ttelmah Guest
Posted: Sat Mar 05, 2005 3:08 pm
This was reported at the time. It was a deliberate change, apparently to actually bring the compiler closer to ANSI in some way, but it results in arithmetic, that doesn't happen to 'hit' the bit used by an int1, resulting in a false. Use:
LcdD4=((n&1)!=0).
This should result in a faster version than the if test.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum