Fixes owerflow warning during compilation.

Trivial fix for compiler warning