News for hackers. Stuff that matters.
Re:Modern C for C++ Peeps by nayuki on Saturday January 07, 2023 @10:43PM (#34295815)
Correct. For example, if int is a 32-bit type (as it commonly is), then uint16_t will be promoted to signed int, and (uint16_t)0xFFFF * (uint16_t)0xFFFF will cause signed overflow and trigger undefined behavior.

There are no comments on this comment yet.