title: C++: Is it safe to compare a 64bit integer with a 32bit integer?
body: <p>Assuming I have 2 variables:</p>
  
  <pre><code>uint64_t a = ...
  
  uint32_t b = ...
  </code></pre>
  
  <p>Will comparing the integers yield the expected results, i.e. <code>(a != b)</code>, or <code>(b &gt; a)</code>?</p>