Resolving the integer overflow problem by simply adding braces