diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-07-29 18:40:36 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-07-29 18:40:36 -0700 |
commit | 89b87bc7c493670ecb598784e1073a09f691d43e (patch) | |
tree | b645853bb524a9a57a897a729269786aad8c4ce6 /053continuation.cc | |
parent | 9570363aec35e187e2395b1760a4b94e71580ac9 (diff) | |
download | mu-89b87bc7c493670ecb598784e1073a09f691d43e.tar.gz |
1886 - gracefully handle malformed ingredients
For example: x:number <- index y:address:array:number, 3 (forgetting to do a lookup) Thanks Caleb Couch.
Diffstat (limited to '053continuation.cc')
-rw-r--r-- | 053continuation.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/053continuation.cc b/053continuation.cc index 20cf1b05..5885fd40 100644 --- a/053continuation.cc +++ b/053continuation.cc @@ -193,6 +193,7 @@ REPLY_DELIMITED_CONTINUATION, Recipe_ordinal["reply-delimited-continuation"] = REPLY_DELIMITED_CONTINUATION; :(before "End Primitive Recipe Implementations") case REPLY_DELIMITED_CONTINUATION: { + products.resize(1); // first clear any existing ingredients, to isolate the creation of the // continuation from its calls Current_routine->calls.front().ingredient_atoms.clear(); @@ -210,7 +211,6 @@ case REPLY_DELIMITED_CONTINUATION: { Current_routine->calls.pop_front(); } // return it as the result of the 'reset' call - products.resize(1); products.at(0).push_back(Next_delimited_continuation_id); ++Next_delimited_continuation_id; break; // continue to process rest of 'reset' call |