title: adding "int" with "uint_64t"
body: <p>There are three variables with the following types</p>
  
  <pre><code> uint64_t old_addr, new_addr;
   int delta;
  </code></pre>
  
  <p>and I want to do this assignment</p>
  
  <pre><code> new_addr = old_addr + delta;
  </code></pre>
  
  <p>However the problem is, when <code>old_addr=915256</code> and <code>delta=-6472064</code>, the <code>new_addr</code> becoms <code>18446744069414584325</code></p>
  
  <p>to fix that I have to check some things:</p>
  
  <pre><code> if ( delta &lt; 0 ) {
  if ( old_addr &lt; abs(delta) )
     new_addr = 0;
      else   
         new_addr = old_addr + delta;
   }
  </code></pre>
  
  <p>Is there a better and efficient way?</p>