SDCC : TD- 4.5.0 #15242 (MINGW32)
void main(void) { uint8_t FooOk = 308; // Ok uint8_t Foo = 308 - 1; // error 158: overflow in implicit constant conversion }
Sorry, I forgot the "code" attribute.
void main(void) { uint8_t FooOk = 30*8; // Ok uint8_t Foo = 30*8 - 1; // error 158: overflow in implicit constant conversion }
Log in to post a comment.
Sorry, I forgot the "code" attribute.
Last edit: Maurizio Spagni 2026-05-10