Skip to content

Commit 4dd360f

Browse files
committed
fix to build fail with rb_str_new macro usage
1 parent 17fe8e7 commit 4dd360f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/json/ext/fbuffer/fbuffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static FBuffer *fbuffer_dup(FBuffer *fb)
172172

173173
static VALUE fbuffer_to_s(FBuffer *fb)
174174
{
175-
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
175+
VALUE result = rb_str_new(FBUFFER_PTR(fb), FBUFFER_LEN(fb));
176176
fbuffer_free(fb);
177177
FORCE_UTF8(result);
178178
return result;

0 commit comments

Comments
 (0)