fixed narrowing conversion warning with GCC 4.7.3