Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 14.4 and the explanation is not enough to understand why
#2
Just to be clear, you don't need to use the boolean type, but you need to form a boolean expression, e.g.
Code:
if ((udtEvents & (tudtKalEvents)udtSTOP_EVENT) != 0u)
{
  vidStop();
}
It´s all about avoiding implicit conversion as much as possible.
<t></t>


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)