From 4f49c97afe24199cafbb51db37e642ed5c5235cc Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 2 Oct 2013 11:56:20 -0400 Subject: clover: Use std::numeric_limits::max() instead of SIZE_MAX This prevents a build failure on some systems. Reviewed-by: Francisco Jerez --- src/gallium/state_trackers/clover/core/kernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp b/src/gallium/state_trackers/clover/core/kernel.cpp index 53714b4283c..a764bb55ea8 100644 --- a/src/gallium/state_trackers/clover/core/kernel.cpp +++ b/src/gallium/state_trackers/clover/core/kernel.cpp @@ -115,7 +115,7 @@ _cl_kernel::mem_private() const { size_t _cl_kernel::max_block_size() const { - return SIZE_MAX; + return std::numeric_limits::max(); } const std::string & -- cgit v1.2.3