4 ms·
Signed or unsigned doesn’t matter much both can overflow. I actually started putting assertion checks about overflow issues almost everywhere but it requires g
by DethNinja 6y ago
Signed or unsigned doesn’t matter much both can overflow.
I actually started putting assertion checks about overflow issues almost everywhere but it requires great discipline. I wonder if there is a better solution available.
- enedil 6y agoIf you can allow yourself this kind of performance regression, you can compile in GCC or clang with `-fsanitize=signed-integer-overflow`, this will do runtime checks.