summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
Diffstat (limited to '6')
-rw-r--r--6/simp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/simp.c b/6/simp.c
index b1fe969..28548c6 100644
--- a/6/simp.c
+++ b/6/simp.c
@@ -295,7 +295,7 @@ static void cjmp(Simp *s, Node *cond, Node *iftrue, Node *iffalse)
static Node *slicelen(Simp *s, Node *sl)
{
/* *(&sl + sizeof(size_t)) */
- return load(addk(addr(s, sl, tyintptr), Ptrsz));
+ return load(addk(addr(s, rval(s, sl, NULL), tyintptr), Ptrsz));
}
Node *loadvar(Simp *s, Node *n, Node *dst)