aboutsummaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-17 14:28:12 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-17 14:28:12 -0500
commit94771950981a6f90b425e849d60dc9755ea868c1 (patch)
tree635c98a922d05b93aac053e9e6b82019d0424f8e /environment.c
parentcf88dc8af57d404153554479e7a8a73f4d74d026 (diff)
Fixing things up
Diffstat (limited to 'environment.c')
-rw-r--r--environment.c3
1 files changed, 2 insertions, 1 deletions
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++) {