Y
Hacker News
new
|
ask
|
show
|
jobs
by
hathawsh
490 days ago
It does change the semantics if n is negative or large enough to cause an overflow. The challenge for the compiler is to somehow prove that neither of those things can happen.
1 comments
kryptiskt
490 days ago
It doesn't have to prove absence of overflow since that is undefined behavior in C and thus modern compilers assume it can never happen.
link
hathawsh
489 days ago
Great point.
link