fix conversion warning on gcc-4.7