diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-17 02:22:41 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-17 02:22:41 -0700 |
commit | ac0e9db526dc15cf91f4c45c4586ddcc19e9708c (patch) | |
tree | b5820975a254965d9963fda26d1a3d6644885e58 /048continuation.cc | |
parent | 6f8f9fb53b5a7ef26496d496a4b93266c78d6332 (diff) | |
download | mu-ac0e9db526dc15cf91f4c45c4586ddcc19e9708c.tar.gz |
1391 - avoid unsigned integers
Diffstat (limited to '048continuation.cc')
-rw-r--r-- | 048continuation.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/048continuation.cc b/048continuation.cc index 80c9293d..87cf12e3 100644 --- a/048continuation.cc +++ b/048continuation.cc @@ -7,8 +7,8 @@ //: todo: implement continuations in mu's memory :(before "End Globals") -map<index_t, call_stack> Continuation; -index_t Next_continuation_id = 0; +map<long long int, call_stack> Continuation; +long long int Next_continuation_id = 0; :(before "End Setup") Continuation.clear(); Next_continuation_id = 0; @@ -36,8 +36,8 @@ CONTINUE_FROM, Recipe_number["continue-from"] = CONTINUE_FROM; :(before "End Primitive Recipe Implementations") case CONTINUE_FROM: { - assert(ingredients.at(0).size() == 1); // scalar - index_t c = ingredients.at(0).at(0); + assert(scalar(ingredients.at(0))); + long long int c = ingredients.at(0).at(0); Current_routine->calls = Continuation[c]; // deep copy because calls have no pointers // refresh instruction_counter to next instruction after current-continuation instruction_counter = current_step_index()+1; |