for loop condition always true

c, for-loop, range, types

Solution

uint8_t i=0;
do {
    //code
}while(++i);

Problem

I have a For loop in C: ``` u8 i; for (i=0; i <= 255; i++) { //code } ``` Now the compiler complains that "comparison is always true due to limited range of data type" I understand that 255 is u8 max but a for loop must have a condition. What should I put there then? Thanks.

Original source