about summary refs log tree commit diff stats
path: root/cpp/010vm
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-02-19 15:24:20 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-02-19 15:24:20 -0800
commitcae5461b1dfeb70dac6b66192fc6b12952beb723 (patch)
tree235f8f62fff902c3227d65c9c64c41d0e45e1485 /cpp/010vm
parent01b2852b653a81c4d5e197a0c52659c7e0dcaf5f (diff)
downloadmu-cae5461b1dfeb70dac6b66192fc6b12952beb723.tar.gz
783
Diffstat (limited to 'cpp/010vm')
-rw-r--r--cpp/010vm10
1 files changed, 8 insertions, 2 deletions
diff --git a/cpp/010vm b/cpp/010vm
index 3b8a7c96..a8ce5bac 100644
--- a/cpp/010vm
+++ b/cpp/010vm
@@ -73,8 +73,11 @@ void setup_types() {
   Type.clear();  Type_number.clear();
   Type_number["literal"] = 0;
   Next_type_number = 1;
-  int integer = Type_number["integer"] = Next_type_number++;
+  // New Types.
+  int integer = Type_number["integer"] = 1;
   Type[integer].size = 1;
+  Next_type_number++;
+  // End New Types.
 }
 :(before "End Setup")
   setup_types();
@@ -102,7 +105,10 @@ void setup_recipes() {
   Recipe.clear();  Recipe_number.clear();
   Recipe_number["idle"] = 0;
   Next_recipe_number = 1;
-  Recipe_number["copy"] = Next_recipe_number++;
+  // New Recipes.
+  Recipe_number["copy"] = 1;
+  Next_recipe_number++;
+  // End New Recipes.
 }
 :(before "End Types")
 const int idle = 0;  // always the first entry in the recipe book