Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 1) C4807 (Windows CE 5.0)

Windows CE 5.0
Send Feedback

'operation' : unsafe mix of type 'type' and signed bitfield of type 'type'

This warning is generated when comparing a one-bit signed bit field to a bool variable. Because a one-bit signed bit field can only contain the values -1 or 0, it is dangerous to compare it to bool.

No warnings are generated about mixing bool and one-bit unsigned bitfields because they are identical to bool and can only hold 0 or 1.


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show:
© 2015 Microsoft