clover: Use std::numeric_limits<std::size_t>::max() instead of SIZE_MAX
authorTom Stellard <thomas.stellard@amd.com>
Wed, 2 Oct 2013 15:56:20 +0000 (11:56 -0400)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 21 Oct 2013 17:47:02 +0000 (10:47 -0700)
This prevents a build failure on some systems.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/core/kernel.cpp

index 53714b4283c6114cd8d8a5f1102aa5d58bdf2901..a764bb55ea8d453aecc73b18ca5496bfde3ce07f 100644 (file)
@@ -115,7 +115,7 @@ _cl_kernel::mem_private() const {
 
 size_t
 _cl_kernel::max_block_size() const {
-   return SIZE_MAX;
+   return std::numeric_limits<std::size_t>::max();
 }
 
 const std::string &