MISRA Discussion Forums

Full Version: What is the essential type of -123L?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When applying the essential type model, what is the essential type of "-123L"?
The last paragraph of section D.1 states that sections D.2 – D.7 only apply to expressions whose standard C type is "signed int" or"unsigned int".

The standard type of the expression “-123L” is "signed long", and hence the essential type is also "signed long".