From aedda89f656b286cff44756a4dcb50117051ebe9 Mon Sep 17 00:00:00 2001 From: Huihui Zhang Date: Tue, 11 Feb 2020 14:42:41 -0800 Subject: [PATCH] [NFC] Fix warning: comparison of integers of different signs. ../polly/lib/Transform/ScheduleOptimizer.cpp:812:54: warning: comparison of integers of different signs: 'isl_size' (aka 'int') and 'const unsigned int' [-Wsign-compare] isl_schedule_node_band_n_member(Node.get()) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ --- polly/lib/Transform/ScheduleOptimizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polly/lib/Transform/ScheduleOptimizer.cpp b/polly/lib/Transform/ScheduleOptimizer.cpp index c54bc08..d9dffb8 100644 --- a/polly/lib/Transform/ScheduleOptimizer.cpp +++ b/polly/lib/Transform/ScheduleOptimizer.cpp @@ -809,7 +809,7 @@ static isl::schedule_node permuteBandNodeDimensions(isl::schedule_node Node, unsigned FirstDim, unsigned SecondDim) { assert(isl_schedule_node_get_type(Node.get()) == isl_schedule_node_band && - isl_schedule_node_band_n_member(Node.get()) > + (unsigned)isl_schedule_node_band_n_member(Node.get()) > std::max(FirstDim, SecondDim)); auto PartialSchedule = isl::manage(isl_schedule_node_band_get_partial_schedule(Node.get())); -- 2.7.4