From 19fbfe432de43b2aece74f8014c217c7de6cb655 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Fri, 18 Oct 2019 11:21:42 -0400 Subject: small correction --- main.c | 2 +- parse.c | 2 +- 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; } -- cgit v1.2.3