mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fbuffer.h: expand arguments
* ext/json/fbuffer/fbuffer.h (fbuffer_to_s): expand arguments, for fix with rb_str_new macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1495c2f8e9
commit
dc70a9c422
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ static FBuffer *fbuffer_dup(FBuffer *fb)
|
||||||
|
|
||||||
static VALUE fbuffer_to_s(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);
|
fbuffer_free(fb);
|
||||||
FORCE_UTF8(result);
|
FORCE_UTF8(result);
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue