summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-10-18 11:21:42 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-10-18 11:21:42 -0400
commit19fbfe432de43b2aece74f8014c217c7de6cb655 (patch)
treefc46b15724d015f45d80828abc294a2c7a565929
parentea40420c8dbf784f764956926af1e3d408afc185 (diff)
small correction
-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;
}