Skip to content

microsoft/clc: Fixes compiling errors with clang/mingw64 in clc/clc_compiler_test.cpp

Yonggang Luo requested to merge lygstate/mesa:clang-mingw64-fix into main
clc_compiler_test.cpp:1322:67: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list
      log(0.0f) / log(2), log(1.0f) / log(2), log(2.0f) / log(2), log(3.0f) / log(2)
clc_compiler_test.cpp:2306:25: error: non-constant-expression cannot be narrowed from type 'std::vector<unsigned int>::size_type' (aka 'unsigned long long') to 'unsigned int' in initializer list
   CompileArgs args = { inout.size(), 1, 1 };

Signed-off-by: Yonggang Luo luoyonggang@gmail.com

cc @jenatali @pal1000

Edited by Yonggang Luo

Merge request reports