about summary refs log tree commit diff stats
path: root/022arithmetic.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-01-12 21:20:19 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-01-12 21:20:19 -0800
commit0fac1f87339709e9e3ef8d2df2dbd88ba8c8d706 (patch)
tree3bc5ad84b5f7b453719d0f035aaf4d6fd3fbd82a /022arithmetic.cc
parent7ac8feeff10abfd76f712f8f32406dd30ba1c73e (diff)
downloadmu-0fac1f87339709e9e3ef8d2df2dbd88ba8c8d706.tar.gz
2558
Diffstat (limited to '022arithmetic.cc')
-rw-r--r--022arithmetic.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/022arithmetic.cc b/022arithmetic.cc
index b16bc584..5181ed9d 100644
--- a/022arithmetic.cc
+++ b/022arithmetic.cc
@@ -269,6 +269,9 @@ case DIVIDE_WITH_REMAINDER: {
   long long int b = static_cast<long long int>(ingredients.at(1).at(0));
   if (b == 0) {
     raise_error << maybe(current_recipe_name()) << "divide by zero in '" << current_instruction().to_string() << "'\n" << end();
+    products.resize(2);
+    products.at(0).push_back(0);
+    products.at(1).push_back(0);
     break;
   }
   long long int quotient = a / b;