Converts a whole number in the 16-bit signed range to short
All 5 scenarios hold
expected outcome
broken scenario
| Scenario | short | Short | Converted value? |
|---|---|---|---|
| Decimal digits | 15 | 15 | 15 |
| Hex literal | 0xF | 0xF | 15 |
| Octal literal | 017 | 017 | 15 |
| Most negative value | -32768 | -32768 | -32768 |
| Largest value | 32767 | 32767 | 32767 |