Commit c4e8dc27 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed compilation warning

parent 1f17e08c
......@@ -94,7 +94,7 @@ public:
replacements["MIN_KEY"] = TRAIT::clMinKey();
replacements["MAX_KEY"] = TRAIT::clMaxKey();
replacements["MAX_VALUE"] = TRAIT::clMaxValue();
replacements["VALUE_IS_INT2"] = (TRAIT::clDataType() == "int2" ? "1" : "0");
replacements["VALUE_IS_INT2"] = (TRAIT::clDataType() == std::string("int2") ? "1" : "0");
cl::Program program = context.createProgram(context.replaceStrings(OpenCLKernelSources::sort, replacements));
computeRangeKernel = cl::Kernel(program, "computeRange");
assignElementsKernel = cl::Kernel(program, "assignElementsToBuckets");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment