summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2014-12-28 12:32:18 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2014-12-28 12:32:18 +0900
commit4dd360f7454b3da3288b94500fb95cd51fe9aec8 (patch)
treecfe7ef6c78a39802fce88375e808943174423439
parent17fe8e72f484e65e0c36670946934d1f8696e37b (diff)
downloadjson-4dd360f7454b3da3288b94500fb95cd51fe9aec8.tar.gz
fix to build fail with rb_str_new macro usage
-rw-r--r--ext/json/ext/fbuffer/fbuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/ext/fbuffer/fbuffer.h b/ext/json/ext/fbuffer/fbuffer.h
index af74187..9524fb1 100644
--- a/ext/json/ext/fbuffer/fbuffer.h
+++ b/ext/json/ext/fbuffer/fbuffer.h
@@ -172,7 +172,7 @@ static FBuffer *fbuffer_dup(FBuffer *fb)
static VALUE fbuffer_to_s(FBuffer *fb)
{
- VALUE result = rb_str_new(FBUFFER_PAIR(fb));
+ VALUE result = rb_str_new(FBUFFER_PTR(fb), FBUFFER_LEN(fb));
fbuffer_free(fb);
FORCE_UTF8(result);
return result;