diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-01-12 21:20:19 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-01-12 21:20:19 -0800 |
commit | 0fac1f87339709e9e3ef8d2df2dbd88ba8c8d706 (patch) | |
tree | 3bc5ad84b5f7b453719d0f035aaf4d6fd3fbd82a /022arithmetic.cc | |
parent | 7ac8feeff10abfd76f712f8f32406dd30ba1c73e (diff) | |
download | mu-0fac1f87339709e9e3ef8d2df2dbd88ba8c8d706.tar.gz |
2558
Diffstat (limited to '022arithmetic.cc')
-rw-r--r-- | 022arithmetic.cc | 3 |
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; |