3 ms·
Apparently, as the GP points out, the article author meant to write asterisk where he wrote plus. uint16(50_000) * uint16(50_000) is uint32(2_500_000_000), whi
by cynwoody 4y ago
Apparently, as the GP points out, the article author meant to write asterisk where he wrote plus.
uint16(50_000) * uint16(50_000) is uint32(2_500_000_000), which turns out to be int32(-1_794_967_296), the garbage result the author cites.