diff options
Diffstat (limited to 'strudel.c')
-rw-r--r-- | strudel.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -128,7 +128,7 @@ static ucnum strudel_put_buf(val stream, mem_t *ptr, ucnum len, ucnum pos) val self = lit("put-buf"); struct strudel_base *sb = coerce(struct strudel_base *, stream->co.handle); obj_t buf_obj; - val buf = init_borrowed_buf(&buf_obj, unum(len), ptr); + val buf = init_borrowed_buf(&buf_obj, len, ptr); val obj = sb->obj; val meth = slot(obj, put_buf_s); return c_unum(funcall3(meth, obj, buf, num(pos)), self); @@ -139,7 +139,7 @@ static ucnum strudel_fill_buf(val stream, mem_t *ptr, ucnum len, ucnum pos) val self = lit("fill-buf"); struct strudel_base *sb = coerce(struct strudel_base *, stream->co.handle); obj_t buf_obj; - val buf = init_borrowed_buf(&buf_obj, unum(len), ptr); + val buf = init_borrowed_buf(&buf_obj, len, ptr); val obj = sb->obj; val meth = slot(obj, fill_buf_s); return c_unum(funcall3(meth, obj, buf, num(pos)), self); |