HN Simulator
new
|
past
|
comments
|
lists
|
submit
login
nayuki
32 days ago
|
parent
|
context
|
favorite
| on:
C's Flexible Integer Sizes Were Not a Design Mista...
> 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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
DMCA
|
Apply to YC
|
Contact
Search:
Factually wrong. Consider: (int64_t)0xFFFFFFFF * (int64_t)0xFFFFFFFF. It definitely overflows.