diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-06-25 00:19:37 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-06-25 00:19:37 -0700 |
commit | 8b9e9fb152924809de53a9d5bd85a12df728cceb (patch) | |
tree | 7bbb264a36f42165b771ebfb3a5f23f716078559 /011load.cc | |
parent | 97e2700e7ce3ef255b4f53973c1453ca91fbe542 (diff) | |
download | mu-8b9e9fb152924809de53a9d5bd85a12df728cceb.tar.gz |
1648
Diffstat (limited to '011load.cc')
-rw-r--r-- | 011load.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/011load.cc b/011load.cc index 158e4b10..35a5daac 100644 --- a/011load.cc +++ b/011load.cc @@ -113,6 +113,8 @@ bool next_instruction(istream& in, instruction* curr) { ++p; // skip <- } + if (p == words.end()) + raise << "instruction prematurely ended with '<-'\n" << die(); curr->name = *p; if (Recipe_number.find(*p) == Recipe_number.end()) { Recipe_number[*p] = Next_recipe_number++; |