summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-10-02 11:56:20 -0400
committerFrancisco Jerez <currojerez@riseup.net>2013-10-21 10:47:02 -0700
commit4f49c97afe24199cafbb51db37e642ed5c5235cc (patch)
tree88b2d81a878591d4ea88b26007cfebd8cfec001f
parentac81b6f2be8779022e8641984b09118b57263128 (diff)
clover: Use std::numeric_limits<std::size_t>::max() instead of SIZE_MAX
This prevents a build failure on some systems. Reviewed-by: Francisco Jerez <currojerez@riseup.net>
-rw-r--r--src/gallium/state_trackers/clover/core/kernel.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::size_t>::max();
}
const std::string &