diff options
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++; |