summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/types.c b/types.c
index 55c5e07..a84bf30 100644
--- a/types.c
+++ b/types.c
@@ -2425,11 +2425,11 @@ static bool types_decl(Typer *tr, Declaration *d) {
if (success) {
if (d->flags & DECL_EXPORT) {
/* export it! */
- if (!tr->exptr) {
+ if (!tr->pkg_name) {
err_print(d->where, "Declaration marked for exporting, but no package output was specified.");
success = false;
} else {
- success = export_decl_external(tr->exptr, d);
+ export_decl_external(tr->exptr, d);
}
}
} else {