title: My code returns an unexcpected value
body: <p>Sorry for the generic question but I've come across a behaviour in my code that I can't explain and that I find relevant for further users.
  There is the screenshot of my screen when it happend. It's a repeatable error that happend any time my code runs.
  <a href="https://i.stack.imgur.com/2smxg.png" rel="nofollow noreferrer">screenshot</a>
  and there is the text version of it.
  My code runs a function</p>
  <pre><code>inline static int isInBounds(SDL_Surface* img,int x,int y){
    if((x&lt;0)||(x &gt;= img-&gt;w)||(y&lt;0)||(y &gt;= img-&gt;h) ) return 0;
    return 1;
  }
  </code></pre>
  <p>I ran my code using gdb and I got the results</p>
  <pre><code>(gdb) print isInBounds(surface,x,y)
  $1 = 1
  (gdb) print y &gt;= surface-&gt;h
  $2 = 1
  </code></pre>
  <p>I don't get it. If (y &gt;= surface-&gt;h) = 1, shouldn't the function isInBounds(surface,x,y) return 0 since the if statement is fulfilled ?</p>