clover: Fix typo in validate_object()

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
Tom Stellard 2014-03-21 11:08:26 -07:00 committed by Francisco Jerez
parent 9477d8c862
commit 8d8d0cb09e

View file

@ -86,7 +86,7 @@ namespace {
throw error(CL_INVALID_VALUE);
// ...and within the specified object.
if (dot(pitch, origin) + size(pitch, origin) > mem.size())
if (dot(pitch, origin) + size(pitch, region) > mem.size())
throw error(CL_INVALID_VALUE);
if (any_of(is_zero(), region))