]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix sporked capture
authorfennecdjay <fennecdjay@gmail.com>
Mon, 27 Jun 2022 19:45:19 +0000 (21:45 +0200)
committerfennecdjay <fennecdjay@gmail.com>
Mon, 27 Jun 2022 19:45:19 +0000 (21:45 +0200)
src/emit/emit.c

index 5139e9c8d919691e6f6b8b374b481e67e2e5af50..b3f3e7a45cbd37366b26c0307ec28b35073573d6 100644 (file)
@@ -1765,7 +1765,7 @@ ANN m_bool emit_exp_spork(const Emitter emit, const Exp_Unary *unary) {
     Capture_List caps = sporker.captures;
     for (uint32_t i = 0; i < caps->len; i++) {
       Capture *cap = mp_vector_at(caps, Capture, i);
-      const Value v = nspc_lookup_value1(emit->env->curr, cap->xid);
+      const Value v = cap->orig;
       struct Exp_ exp = {
         .d = { .prim = {
           .d = { .var = cap->xid },