summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/types.c b/types.c
index 5e2a4b3..2bbe4df 100644
--- a/types.c
+++ b/types.c
@@ -189,7 +189,9 @@ static bool expr_must_lval(Expression *e) {
return false;
}
-#define TYPE_OF_FN_NO_COPY_EVEN_IF_CONST 0x01
+enum {
+ TYPE_OF_FN_NO_COPY_EVEN_IF_CONST = 0x01,
+};
static bool type_of_fn(Typer *tr, FnExpr *f, Location where, Type *t, U16 flags) {
t->kind = TYPE_FN;