logoalt Hacker News

mjs01yesterday at 9:02 AM1 replyview on HN

Integer promotion seems to be the source of many signed integer overflow UB. Why does C have it? Does integer promotion ever have a good part?


Replies

saagarjhayesterday at 11:39 AM

Yes, it simplifies a lot of code that would otherwise be littered with casts.

show 1 reply