[arrayfire] 228/284: Fixing compiler warnings
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:36 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/experimental
in repository arrayfire.
commit 46042feed38a8871ddf7bd7fb0cf3747d70b0c35
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Mon Jan 18 15:39:33 2016 -0500
Fixing compiler warnings
---
src/backend/opencl/platform.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/opencl/platform.cpp b/src/backend/opencl/platform.cpp
index ef9f8f6..d7c3e1c 100644
--- a/src/backend/opencl/platform.cpp
+++ b/src/backend/opencl/platform.cpp
@@ -181,14 +181,14 @@ static inline bool compare_default(const Device *ldev, const Device *rdev)
auto lversion = ldev->getInfo<CL_DEVICE_VERSION>();
auto rversion = rdev->getInfo<CL_DEVICE_VERSION>();
- auto lres = (lversion[7] > rversion[7]) ||
+ bool lres = (lversion[7] > rversion[7]) ||
((lversion[7] == rversion[7]) && (lversion[9] > rversion[9]));
- auto rres = (lversion[7] < rversion[7]) ||
+ bool rres = (lversion[7] < rversion[7]) ||
((lversion[7] == rversion[7]) && (lversion[9] < rversion[9]));
- if (lres > 0) return true;
- if (rres < 0) return false;
+ if (lres) return true;
+ if (rres) return false;
}
// Default crietria, sort based on memory
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list