Y
Hacker News
new
|
ask
|
show
|
jobs
by
nayuki
65 days ago
> multiplying two 32-bit values, recast as 64-bit signed integers, will not overflow
Factually wrong. Consider: (int64_t)0xFFFFFFFF * (int64_t)0xFFFFFFFF. It definitely overflows.