12 lines
783 B
Plaintext
12 lines
783 B
Plaintext
This rule is a strict implementation of a MISRA (Motor Industry Software Reliability Association) rule. MISRA defines best practices for developing safety-critical software. You can learn more about this rule in the MISRA documents referenced below.
|
|
|
|
If you are not concerned with MISRA compliance or with safety-critical software, you might consider using rule S876 instead ; it targets the same kind of issue for general-purpose software.
|
|
|
|
|
|
== See
|
|
|
|
* MISRA C 2004, 12.9 - The unary minus operator shall not be applied to an expression whose _underlying type_ is unsigned.
|
|
* MISRA C++ 2008, 5-3-2 - The unary minus operator shall not be applied to an expression whose _underlying type_ is unsigned.
|
|
* MISRA C 2012, 10.1 - Operands shall not be of an inappropriate _essential type_
|
|
|