title: Warning : left shift count >= width of type
body: <p>I have declared this enum in my header file:</p>
  
  <pre><code>enum wildcard {
    ....
    ....
    NW_SRC  = 0x111UL &lt;&lt; 40,
    ....
  };
  </code></pre>
  
  <p>When I compile it I get the following warning:</p>
  
  <pre><code>warning: left shift count &gt;= width of type [enabled by default]
  </code></pre>
  
  <p>I think this is because enum type is treated as an <code>int</code> by the compiler. How to I resolve this?</p>