about summary refs log tree commit diff stats
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/010vm.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/010vm.cc b/cpp/010vm.cc
index d70305b7..7df0e03e 100644
--- a/cpp/010vm.cc
+++ b/cpp/010vm.cc
@@ -4,7 +4,7 @@ typedef size_t recipe_number;
 :(before "End Globals")
 map<string, recipe_number> Recipe_number;
 map<recipe_number, recipe> Recipe;
-int Next_recipe_number = 1;
+recipe_number Next_recipe_number = 1;
 
 :(before "End Types")
 // Recipes are lists of instructions. To run a recipe, the computer runs its
@@ -74,7 +74,7 @@ typedef size_t type_number;
 :(before "End Globals")
 map<string, type_number> Type_number;
 map<type_number, type_info> Type;
-int Next_type_number = 1;
+type_number Next_type_number = 1;
 :(code)
 void setup_types() {
   Type.clear();  Type_number.clear();
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147