diff --git a/include/dlaf/matrix/distribution.h b/include/dlaf/matrix/distribution.h index 15ddd4cc71..aea2e6b352 100644 --- a/include/dlaf/matrix/distribution.h +++ b/include/dlaf/matrix/distribution.h @@ -431,7 +431,7 @@ class Distribution { template SizeType tileSize(SizeType global_tile) const noexcept { - DLAF_ASSERT_HEAVY(0 <= global_tile && global_tile <= global_nr_tiles_.get(), global_tile, + DLAF_ASSERT_HEAVY(0 <= global_tile && global_tile < global_nr_tiles_.get(), global_tile, global_nr_tiles_.get()); SizeType n = size_.get(); SizeType nb = tile_size_.get();