Fixed narrowing conversion issue with GCC