aboutsummaryrefslogtreecommitdiff
path: root/src/c.bqn
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-08-14 10:31:36 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-08-14 10:31:36 -0400
commit49fe6eb11fda5fccb016feb914b0bce1ae2ea6a0 (patch)
treeefab0d749b13afda6d006101b0b8cdc3671a57a4 /src/c.bqn
parent38667f6fee23f3470c0a980c9f63c60c1c9ee644 (diff)
Fix header variable slot adjustment if there are bodies without headers
Diffstat (limited to 'src/c.bqn')
-rw-r--r--src/c.bqn2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c.bqn b/src/c.bqn
index 589422c5..246634ab 100644
--- a/src/c.bqn
+++ b/src/c.bqn
@@ -196,7 +196,7 @@ Parse ← {r‿vn‿i‿e‿def←𝕨⋄nv←≠vn
"Only blocks with explicit arguments can have multiple bodies"_err_(/CB) 1↓cm>fx
"Block bodies must be of the same kind"_err_(/CB) 1↓cf<»⊸≠ft
fsc←(ft⊏0‿2‿3)+3×fx # Special name count
- hv-↩hc+`⊸⊏«3׬fx # Header variable slot
+ hv-↩(»+`hc)⊏3׬ch/fx # Header variable slot
# Propagate roles through parentheses
# ir is the role of the expression ending at each position (truncated to the right)