Fixed narrowing warning when compiling in c++11 mode on gcc 4.7.1