Fixed constant overflow reported by Clang