summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
-rw-r--r--parse.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 78b5560..f77e948 100644
--- a/main.c
+++ b/main.c
@@ -1,9 +1,9 @@
/*
TODO:
-blocks which return tuples
new run-time type resolution
unicode variable names
make sure initializers for global variables are compile-time constants
+structs
don't allow while {3; 5} (once break is added)
any odd number of "s for a string
modifiable strings:
diff --git a/parse.c b/parse.c
index 041ce77..21c1e12 100644
--- a/parse.c
+++ b/parse.c
@@ -318,7 +318,7 @@ static bool parse_type(Parser *p, Type *type) {
{
int b = kw_to_builtin_type(t->token->kw);
if (b != -1) {
- type->builtin = b;
+ type->builtin = (BuiltinType)b;
t->token++;
break;
}