Fix "narrowing conversion" warning from g++.