Fix C++ type warning.