Subtraction convenience

I would like to take advantage of the fact that large numbers subtracted from small numbers returns negative numbers, but this doesn’t seem to work in arduino. I am curious why this doesn’t work? So:

int small = 1000;
int large = 1500;
serial.println(small - large); //I get something like 6500 rather than -500. I smell binary issues.

I smell an incomplete piece of code.

void setup ()
{
  Serial.begin (115200);
  int small = 1000;
  int large = 1500;
  Serial.println(small - large); //I get something like 6500 rather than -500. I smell binary issues.
}
void loop () {}

Output:

-500

Ninja Gammon beat me to it :-)

Pete

I was posting relavent code.

I figured out the issue. It was part of a different process.

I was posting relavent code.

But not all of the relevant code.