fixed constmismatch warning (C99/GCC/clang)