Open pmor13 opened 2 years ago
https://github.com/rui314/chibicc/blob/90d1f7f199cc55b13c7fdb5839d1409806633fdb/parse.c#L1903-L1903
Since the common type of this conditional expression is uint32_t
, the int32_t
path actually goes like
return (int64_t)(uint32_t)(int32_t)val
, missing out 64-bit sign-extension.
leads to: