summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-10-02 11:56:20 -0400
committerMark Mueller <MarkKMueller@gmail.com>2013-10-28 11:06:47 -0700
commit6585091b70de815ea5767195f13a401bc7178861 (patch)
treea8c487d468c1a8bd87fb48f30099104719c5a28c
parentee1767f0ff3f635f51e362759e47f13d48464198 (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 53714b4283..a764bb55ea 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 &