Merge pull request #1204 from dbabokin/build_fix

Fix for one of build problems - clang complains on enum used in va-arg function.
This commit is contained in:
Dmitry Babokin
2016-05-12 14:49:25 +03:00

View File

@@ -287,14 +287,14 @@ private:
std::vector<std::vector<std::string> > names;
std::vector<std::set<CPUtype> > compat;
std::set<CPUtype> Set(CPUtype type, ...) {
std::set<CPUtype> Set(int type, ...) {
std::set<CPUtype> 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;