about summary refs log tree commit diff stats
path: root/010vm.cc
diff options
context:
space:
mode:
Diffstat (limited to '010vm.cc')
-rw-r--r--010vm.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/010vm.cc b/010vm.cc
index b4ba23f1..cf46bc65 100644
--- a/010vm.cc
+++ b/010vm.cc
@@ -275,6 +275,8 @@ type_tree* new_type_tree(const string_tree* properties) {
     const string& type_name = properties->value;
     if (contains_key(Type_ordinal, type_name))
       result->value = get(Type_ordinal, type_name);
+    else
+      result->value = -1;
   }
   result->left = new_type_tree(properties->left);
   result->right = new_type_tree(properties->right);