aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover/api/context.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2013-10-06 13:49:05 -0700
committerFrancisco Jerez <[email protected]>2013-10-21 10:47:02 -0700
commit7d61769e447e47022bea5e9fd415344b45a5a050 (patch)
treeda8e1ad5f6af1f326a8f8f1cf0711c0a2a0057fc /src/gallium/state_trackers/clover/api/context.cpp
parent099d281b38fae791300984964fab1124b0eb14d2 (diff)
clover: Switch to the new utility code.
Tested-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/api/context.cpp')
-rw-r--r--src/gallium/state_trackers/clover/api/context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/api/context.cpp b/src/gallium/state_trackers/clover/api/context.cpp
index 371744120ee..8586b3ece25 100644
--- a/src/gallium/state_trackers/clover/api/context.cpp
+++ b/src/gallium/state_trackers/clover/api/context.cpp
@@ -37,7 +37,7 @@ clCreateContext(const cl_context_properties *props, cl_uint num_devs,
(!pfn_notify && user_data))
throw error(CL_INVALID_VALUE);
- if (any_of(is_zero<cl_device_id>, devs, devs + num_devs))
+ if (any_of(is_zero(), range(devs, num_devs)))
throw error(CL_INVALID_DEVICE);
for (auto p : mprops) {