fix clang warnings about implicit type conversion