From de59f2e0774c63a130e8ab22fe5ad0fea0a7aeaf Mon Sep 17 00:00:00 2001 From: Dmitry Babokin Date: Thu, 12 May 2016 14:37:22 +0300 Subject: [PATCH] Fix for one of build problems - clang complains on enum used in va-arg function. --- ispc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;