|
|||||||||||
Technical Support Support Resources
Product Information |
C166: Warning C192 (Value Truncated)Information in this article applies to:
QUESTIONWith my C166 package, I sometimes receive the following message:
The following example causes this warning:
The code still works. So, what does this warning mean and is it serious? ANSWERWarning C192 is issued because your statement generates a potential int value and the result gets truncated by the assignment to an unsigned char. Avoid this warning with an explicit type cast like:
SEE ALSOLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.