Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 5389454

Browse files
author
Sven Verdoolaege
committed
mapToParameterWithExtent: change type of position argument to size_t
This is a more natural type for a position.
1 parent e2ae64e commit 5389454

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tc/core/polyhedral/schedule_transforms-inl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ template <typename MappingIdType>
4949
inline detail::ScheduleTree* mapToParameterWithExtent(
5050
detail::ScheduleTree* root,
5151
detail::ScheduleTree* tree,
52-
int pos,
52+
size_t pos,
5353
MappingIdType id,
5454
size_t extent) {
5555
auto band = tree->elemAs<detail::ScheduleTreeElemBand>();
5656
CHECK(band) << "expected a band, got " << *tree;
57-
CHECK_GE(pos, 0) << "dimension underflow";
57+
CHECK_GE(pos, 0u) << "dimension underflow";
5858
CHECK_LT(pos, band->nMember()) << "dimension overflow";
5959
CHECK_NE(extent, 0) << "NYI: mapping to 0";
6060

tc/core/polyhedral/schedule_transforms.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ template <typename MappingIdType>
127127
detail::ScheduleTree* mapToParameterWithExtent(
128128
detail::ScheduleTree* root,
129129
detail::ScheduleTree* tree,
130-
int pos,
130+
size_t pos,
131131
MappingIdType id,
132132
size_t extent);
133133

0 commit comments

Comments
 (0)