Fix warning by compilation with -Wconversion, -Weffc++, -pedantic,
-Wextra