about summary refs log tree commit diff stats
path: root/cpp/011load
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-16 23:41:01 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-16 23:41:01 -0700
commitdecaddb418abcb6094e339f1b8dd4bb519b761ad (patch)
treebeab8c830e4dadb06b6b42cf239dfcbbc59db831 /cpp/011load
parenta4ef18b194a24710847be59554e51a1fd618228d (diff)
downloadmu-decaddb418abcb6094e339f1b8dd4bb519b761ad.tar.gz
941 - c++: basic break/loop conversion
Diffstat (limited to 'cpp/011load')
-rw-r--r--cpp/011load1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/011load b/cpp/011load
index 3d75c9ac..97483e93 100644
--- a/cpp/011load
+++ b/cpp/011load
@@ -86,6 +86,7 @@ bool next_instruction(istream& in, instruction* curr) {
     ++p;  // skip <-
   }
 
+  curr->name = *p;
   if (Recipe_number.find(*p) == Recipe_number.end())
     Recipe_number[*p] = Next_recipe_number++;
   curr->operation = Recipe_number[*p];  ++p;