Fix narrowing issue for C++11.