[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [avr-gcc-list] An old but unfixed bug

From: Stumpf Michael
Subject: AW: [avr-gcc-list] An old but unfixed bug
Date: Wed, 22 Aug 2001 12:01:26 +0200

> It seems it is not even working with integers ...
> Look at this code, which i guess loops forever:
> ----------source-----------
> volatile unsigned char x;
> unsigned int i;
> void main(void)
> {
>    for(i = 1000; i <= 0xFFFF; i++)
>      x = 0;
> }

well, i as an unsigned integer will be smaller or equal as 0xFFFF for every possible value.
Loops forever and no need to change i at any time.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]