This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28377D: no Compiler warning when assigning a too large number to uint16_t (and others)

Part Number: TMS320F28377D

Dear forum team,

I expected a compiler warning or error with the following illegal assignment:

Fullscreen
1
uint16_t var = 0x11223;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

But actually only this assignment causes an error:

Fullscreen
1
uint16_t var = 0x1122334455667788A;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

-> error #23: integer constant is too large

Question:

is there a switch so that the compiler generally reports assignments that are larger than allowed?

Dieter