From 7d8e94444d989d0ac4a4055b207726708e9ec0da Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 11 Jan 2018 08:47:15 +0200 Subject: convert ab?b:a Reviewed-on: https://gerrit.libreoffice.org/47736 Tested-by: Jenkins Reviewed-by: Noel Grandin --- opencl/source/opencl_device.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'opencl') diff --git a/opencl/source/opencl_device.cxx b/opencl/source/opencl_device.cxx index f803076c97b4..c4de9284c8df 100644 --- a/opencl/source/opencl_device.cxx +++ b/opencl/source/opencl_device.cxx @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -285,7 +286,7 @@ ds_status evaluateScoreForDevice(ds_device& rDevice, std::unique_ptrinputSize; i++) { fAverage += testData->input0[i]; - fMin = ((fMin < testData->input1[i]) ? fMin : testData->input1[i]); + fMin = std::min(fMin, testData->input1[i]); fSoP += testData->input2[i] * testData->input3[i]; } fAverage /= testData->inputSize; -- cgit