about summary refs log tree commit diff stats
path: root/cpp/011load.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-04 11:02:56 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-04 11:02:56 -0700
commita66c9ae68122e04637d65c7f3aedcd96012c8cb6 (patch)
treeceddf9f22c55621be86768a0aeedc927495e62d6 /cpp/011load.cc
parentde49fb426aa44984d308f5856ec836360ba0bdce (diff)
downloadmu-a66c9ae68122e04637d65c7f3aedcd96012c8cb6.tar.gz
1249 - new type: index_t
It will always be identical to size_t, just more readable, like
recipe_number, etc. The various unsigned types are sizes, indices (which
often compare with sizes for bounds checking), numbers which are
canonical elements of a specific space (like recipes or mu types), and
ids which I haven't introduced yet.
Diffstat (limited to 'cpp/011load.cc')
-rw-r--r--cpp/011load.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/011load.cc b/cpp/011load.cc
index cee2c493..3f0f8e1e 100644
--- a/cpp/011load.cc
+++ b/cpp/011load.cc
@@ -213,7 +213,7 @@ void show_rest_of_stream(istream& in) {
 :(before "End Globals")
 vector<recipe_number> recently_added_recipes;
 :(before "End Setup")
-for (size_t i = 0; i < recently_added_recipes.size(); ++i) {
+for (index_t i = 0; i < recently_added_recipes.size(); ++i) {
 //?   cout << "AAA clearing " << Recipe[recently_added_recipes[i]].name << '\n'; //? 2
   Recipe_number.erase(Recipe[recently_added_recipes[i]].name);
   Recipe.erase(recently_added_recipes[i]);