Preventing integer overflows with inline assembly.