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 /012transform.cc | |
parent | 6f8f9fb53b5a7ef26496d496a4b93266c78d6332 (diff) | |
download | mu-ac0e9db526dc15cf91f4c45c4586ddcc19e9708c.tar.gz |
1391 - avoid unsigned integers
Diffstat (limited to '012transform.cc')
-rw-r--r-- | 012transform.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/012transform.cc b/012transform.cc index c7d9b313..731156a9 100644 --- a/012transform.cc +++ b/012transform.cc @@ -4,7 +4,7 @@ //: deconstructed alternative to conventional compilers. :(before "End recipe Fields") -index_t transformed_until; +long long int transformed_until; recipe() :transformed_until(-1) {} :(before "End Types") @@ -16,7 +16,7 @@ vector<transform_fn> Transform; :(code) void transform_all() { //? cout << "AAA transform_all\n"; //? 1 - for (index_t t = 0; t < Transform.size(); ++t) { + for (long long int t = 0; t < SIZE(Transform); ++t) { for (map<recipe_number, recipe>::iterator p = Recipe.begin(); p != Recipe.end(); ++p) { recipe& r = p->second; if (r.steps.empty()) continue; @@ -33,12 +33,12 @@ void parse_int_reagents() { for (map<recipe_number, recipe>::iterator p = Recipe.begin(); p != Recipe.end(); ++p) { recipe& r = p->second; if (r.steps.empty()) continue; - for (index_t index = 0; index < r.steps.size(); ++index) { + for (long long int index = 0; index < SIZE(r.steps); ++index) { instruction& inst = r.steps.at(index); - for (index_t i = 0; i < inst.ingredients.size(); ++i) { + for (long long int i = 0; i < SIZE(inst.ingredients); ++i) { populate_value(inst.ingredients.at(i)); } - for (index_t i = 0; i < inst.products.size(); ++i) { + for (long long int i = 0; i < SIZE(inst.products); ++i) { populate_value(inst.products.at(i)); } } |