summaryrefslogtreecommitdiff
path: root/6/blob.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-06-25 15:09:52 -0700
committerOri Bernstein <ori@eigenstate.org>2015-06-25 15:09:52 -0700
commitee346d2725b7ff367f5e3e76aa52577f0311b640 (patch)
tree6ff2108fe56dd320267816caf869c12470c4f3bb /6/blob.c
parenta16c4e637079bb3d7f1cb93ae9b2348d710c003f (diff)
downloadmc-ee346d2725b7ff367f5e3e76aa52577f0311b640.tar.gz
Fix a few typos affecting Plan 9.
The recent refactoring broke things a bit.
Diffstat (limited to '6/blob.c')
-rw-r--r--6/blob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/6/blob.c b/6/blob.c
index b9240d7..2738c6c 100644
--- a/6/blob.c
+++ b/6/blob.c
@@ -150,7 +150,7 @@ static size_t bloblit(Blob *seq, Htab *strtab, Node *v, Type *ty)
lbl = genlocallblstr(buf, sizeof buf);
htput(strtab, &v->lit.strval, strdup(lbl));
}
- b(seq, mkblobref(lbl, 0, 0));
+ b(seq, mkblobref(lbl, 0, 1));
b(seq, mkblobi(Bti64, v->lit.strval.len));
break;
case Lfunc:
@@ -183,7 +183,7 @@ static size_t blobslice(Blob *seq, Htab *globls, Htab *strtab, Node *n)
sz = tysize(tybase(exprtype(base))->sub[0]);
lbl = htget(globls, base);
- b(seq, mkblobref(lbl, loval*sz, 0));
+ b(seq, mkblobref(lbl, loval*sz, 1));
b(seq, mkblobi(Bti64, (hival - loval)));
return 16;
}