From 8f3883a28d1d48b5f1d117c2ea4e5f74dc216a16 Mon Sep 17 00:00:00 2001 From: yao Date: Fri, 1 Mar 2013 10:06:51 +0800 Subject: [PATCH] fix a compile warning --- samples/ocl/performance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/ocl/performance.cpp b/samples/ocl/performance.cpp index c0073c5fb6..b2a6d85ad9 100644 --- a/samples/ocl/performance.cpp +++ b/samples/ocl/performance.cpp @@ -4345,7 +4345,7 @@ int main(int argc, const char *argv[]) { if (device == devidx) { - ocl::setDevice(oclinfo[i], j); + ocl::setDevice(oclinfo[i], (int)j); TestSystem::instance().setRecordName(oclinfo[i].DeviceName[j]); printf("\nuse %d: %s\n", devidx, oclinfo[i].DeviceName[j].c_str()); goto END_DEV;