aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--builtins/table.c1
-rw-r--r--environment.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/builtins/table.c b/builtins/table.c
index 1c696a31..cf73b256 100644
--- a/builtins/table.c
+++ b/builtins/table.c
@@ -21,6 +21,7 @@
#include "../SipHash/halfsiphash.h"
#include "../util.h"
#include "array.h"
+#include "string.h"
#include "table.h"
#include "types.h"
diff --git a/environment.c b/environment.c
index c3ecabc7..7ec0773c 100644
--- a/environment.c
+++ b/environment.c
@@ -3,6 +3,7 @@
#include "environment.h"
#include "builtins/table.h"
+#include "builtins/string.h"
#include "util.h"
typedef struct {
@@ -48,7 +49,7 @@ env_t *new_environment(void)
{"Int", Type(IntType, .bits=64), "Int_t", "Int", Table_from_entries(*(array_t*)ARRAY(
new(ns_entry_t, "min", {"Int.min", Type(IntType, .bits=64)}),
new(ns_entry_t, "max", {"Int.max", Type(IntType, .bits=64)}),
- ), NULL)},
+ ), &Str_type.type)},
};
for (size_t i = 0; i < sizeof(global_types)/sizeof(global_types[0]); i++) {