by default clang is too picky to constant conversion. Added compilation flag -Wno-constant-conversion