Fix C++11 implicit auto-narrowing error