summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 01e8964..4961f32 100644
--- a/eval.c
+++ b/eval.c
@@ -1514,6 +1514,9 @@ static bool eval_expr(Evaluator *ev, Expression *e, Value *v) {
case EXPR_VAL:
*v = e->val;
break;
+ case EXPR_PKG:
+ v->pkg = e->pkg.name_ident->pkg;
+ break;
case EXPR_DSIZEOF:
case EXPR_DALIGNOF:
assert(0);