diff options
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index e6c95c58f6..1a0f0b8fe8 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -2878,9 +2878,9 @@ ImportTableEntry *add_source_file(CodeGen *g, PackageTableEntry *package, if (is_pub) { if (buf_eql_str(proto_name, "main")) { - g->have_exported_main = true; + g->have_pub_main = true; } else if (buf_eql_str(proto_name, "panic")) { - g->have_exported_panic = true; + g->have_pub_panic = true; } } } |
