subtracting 2 bytes makes int?
807598Sep 25 2006 — edited Sep 25 2006Hi, I'm learning the basics of type casting here and I've got a problem going on that I don't understand.
My trouble line looks like so:
short = byte - byte;
Now the error it gives me is "Type mismatch: cannot convert from int to short."
I'm trying to understand why a byte - byte is an int and also trying to figure out what the solution is, thanks.