f7f58ba1
by Francis De Brabandere at 2026-05-15T21:43:28+02:00
vbscript: Parse &H8000 as Long(-32768) like native.
Native cscript parses every 4-digit hex literal that fits 16 bits as Integer
except &H8000: its value -32768 (INT16_MIN) has no positive Int16
representation, so native promotes it to Long. Wine returned Integer for
that one case because interp_int narrows any value that fits VT_I2.
Skip narrowing for INT16_MIN in interp_int. The only OP_int call site that
emits this value is the hex/oct lexer; unary `-32768` is two ops (push 32768,
then neg) so it isn't affected.