diff --git a/ispc.cpp b/ispc.cpp index a848d5a3..0f6d9170 100644 --- a/ispc.cpp +++ b/ispc.cpp @@ -287,14 +287,14 @@ private: std::vector > names; std::vector > compat; - std::set Set(CPUtype type, ...) { + std::set Set(int type, ...) { std::set retn; va_list args; - retn.insert(type); + retn.insert((CPUtype)type); va_start(args, type); - while ((type = (CPUtype)va_arg(args, int)) != CPU_None) - retn.insert(type); + while ((type = va_arg(args, int)) != CPU_None) + retn.insert((CPUtype)type); va_end(args); return retn;