Shouldn't this calculator natively prevent integer overflow?