title: Dependence placed on C/C++ operator precedence; operators '&&' and '==' [MISRA 2012 Rule 12.1, advisory] | pclint 9050
body: <pre><code>uint8 config;    
  #define ELEM1 1U
  
  void test1(void)
  {
      /*Check Bit 0 of Configuration*/
      if((config) == 2 &amp;&amp; (config) == 4)
      {
          arr[ELEM1].status[0]          = 0x00;
      }
  
  }
  </code></pre>
  <p>do I need to try with</p>
  <p>1)</p>
  <pre><code>if(((config) == 2) &amp;&amp; ((config) == 4))
  </code></pre>
  <ol start="2">
  <li></li>
  </ol>
  <pre><code>if((Boolean)((config) == 2) &amp;&amp; ((config) == 4))
  </code></pre>
  <p>after above change, I am observing error now:</p>
  <blockquote>
  <p>Conditional expression should have essentially Boolean type [MISRA
  2012 Rule 14.4, required]</p>
  </blockquote>