From 2d29369f92eeecf2189ddeff3c7bd3260e1ab130 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 21 Oct 2016 09:17:35 -0700 Subject: 3541 --- 053recipe_header.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '053recipe_header.cc') diff --git a/053recipe_header.cc b/053recipe_header.cc index 450a0142..a98b4c54 100644 --- a/053recipe_header.cc +++ b/053recipe_header.cc @@ -214,9 +214,7 @@ case NEXT_INGREDIENT_WITHOUT_TYPECHECKING: { else { products.resize(2); // pad the first product with sufficient zeros to match its type - int size = size_of(current_instruction().products.at(0)); - for (int i = 0; i < size; ++i) - products.at(0).push_back(0); + products.at(0).resize(size_of(current_instruction().products.at(0))); products.at(1).push_back(0); } break; -- cgit 1.4.1-2-gfad0