Signed number grief.

Here is my proposal:

(signed short) ((x & 0x0200)?(x|0xfc00):x)

Essentially, left extending the sign.