aboutsummaryrefslogtreecommitdiff
path: root/src/cffc.hff
diff options
context:
space:
mode:
Diffstat (limited to 'src/cffc.hff')
-rw-r--r--src/cffc.hff3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cffc.hff b/src/cffc.hff
index 3ff78c4..8cdf655 100644
--- a/src/cffc.hff
+++ b/src/cffc.hff
@@ -90,6 +90,7 @@ struct Parser {
tokloc Loc,
curloc Loc,
eof bool,
+ is_header bool,
peekchr Option<int>,
peektok Option<Tok>,
}
@@ -242,7 +243,7 @@ fn mkarrtype(len i64, konst bool, child *const Type) *const Type {
fn mkptrtype(child *const Type) *const Type {
return interntype({
g_targ.ptrsize,
- .u: :Ptr child
+ .u: :Ptr(child)
});
}
extern fn isnumtype(ty *const Type) bool;