17-02-2015, 01:26 PM
When applying the essential type model, what is the essential type of "-123L"?
Posted by and on behalf of the MISRA C Working Group
Welcome to the new MISRA discussion forum, if you were previously a member of our forums you may need to reset your password.
What is the essential type of -123L?
|
17-02-2015, 01:26 PM
When applying the essential type model, what is the essential type of "-123L"?
Posted by and on behalf of the MISRA C Working Group
17-02-2015, 01:28 PM
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".
Posted by and on behalf of the MISRA C Working Group
|
« Next Oldest | Next Newest »
|