summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--buf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buf.c b/buf.c
index d095472a..50319083 100644
--- a/buf.c
+++ b/buf.c
@@ -255,7 +255,7 @@ static val make_ubuf(ucnum clen)
static struct buf *buf_handle(val buf, val ctx)
{
if (type(buf) == BUF)
- return coerce(struct buf *, buf);
+ return &buf->b;
uw_throwf(error_s, lit("~a: ~s isn't a buffer"),
ctx, buf, nao);
}