diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-04-04 00:10:47 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-04-04 00:10:47 -0700 |
commit | 2b37bbeae29e55f1456a4540741ceefdb5a0aa4b (patch) | |
tree | deda8e7085522803e527ea338fd491347434734a /010vm.cc | |
parent | 860628c70a73064d53048fc095c430a0c3df6124 (diff) | |
download | mu-2b37bbeae29e55f1456a4540741ceefdb5a0aa4b.tar.gz |
3809
Diffstat (limited to '010vm.cc')
-rw-r--r-- | 010vm.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/010vm.cc b/010vm.cc index fea11a50..d23a9fbd 100644 --- a/010vm.cc +++ b/010vm.cc @@ -628,7 +628,8 @@ string to_original_string(const instruction& inst) { out << inst.products.at(i).original_string; } if (!inst.products.empty()) out << " <- "; - out << inst.name << ' '; + out << inst.name; + if (!inst.ingredients.empty()) out << ' '; for (int i = 0; i < SIZE(inst.ingredients); ++i) { if (i > 0) out << ", "; out << inst.ingredients.at(i).original_string; |