This is crazy, I am trying to add 2 shorts together and I get an int!![]()
Why do I have to cast to a short when all the variables are already shorts?Code:short a = 1; short b = 2; short c; c = a + b;![]()
Is there any rationale behind this?Code:c = (short) (a + b);




Reply With Quote