aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.ucl/parser.ccm
diff options
context:
space:
mode:
Diffstat (limited to 'nihil.ucl/parser.ccm')
-rw-r--r--nihil.ucl/parser.ccm3
1 files changed, 2 insertions, 1 deletions
diff --git a/nihil.ucl/parser.ccm b/nihil.ucl/parser.ccm
index 17ed79c..968e906 100644
--- a/nihil.ucl/parser.ccm
+++ b/nihil.ucl/parser.ccm
@@ -147,7 +147,8 @@ export struct parser {
if (obj == nullptr)
throw error("attempt to call top() on an empty parser");
- return {obj};
+ // ucl_parser_get_objects() refs the object for us.
+ return {noref, obj};
}
private: