From 0e62f2b0f5d5a08bc6b569c9780efba950d5f7e3 Mon Sep 17 00:00:00 2001 From: Irina Demeshko Date: Sat, 2 Dec 2023 20:58:56 -0800 Subject: [PATCH] Update src/cunumeric/index/select_template.inl Co-authored-by: Manolis Papadakis --- src/cunumeric/index/select_template.inl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);