tiny bugfix
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Tue, 20 Apr 2021 13:17:38 +0000 (08:17 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Tue, 20 Apr 2021 13:17:38 +0000 (08:17 -0500)
src/onyxc.c

index 5c8196212fdfa31d38f6bf4067aafc7998f3e32c..a13b5d42236e40ff9eafb21568f919aacb424ce6 100644 (file)
@@ -200,6 +200,8 @@ static void emit_file_contents(OnyxCFile* c_file, AstFileContents* fc) {
 
     fc->addr = lfi.number;
     fc->size = length - 1;
+
+    token_toggle_end(fc->filename);
 }
 
 void emit_c_entity(Entity *ent) {