diff --git a/src/cunumeric/index/select_template.inl b/src/cunumeric/index/select_template.inl index c37ff19aa..c6f71d4bd 100644 --- a/src/cunumeric/index/select_template.inl +++ b/src/cunumeric/index/select_template.inl @@ -50,7 +50,8 @@ struct SelectImpl { #endif std::vector> condlist; - for (int i = 0; i < args.inputs.size() / 2; i++) { + condlist.reserve(args.inputs.size() / 2); + for (int32_t i = 0; i < args.inputs.size() / 2; i++) { auto rect_c = args.inputs[i].shape(); #ifdef DEBUG_CUNUMERIC assert(rect_c == out_rect);