1 2 3 4 5 6
typedef short SHORT; struct v { SHORT i; }; void f(struct v *pin, struct v *pout) { if (pin->i == (-0x7fff)-1) pout->i = -pin->i; }