1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2017-12-02 15:41:08 +00:00
parent d7b06e282a
commit 499da5f2e7

View file

@ -1,13 +1,13 @@
#include "ruby.h" #include "ruby.h"
#include "ruby/encoding.h" #include "ruby/encoding.h"
VALUE static VALUE
bug_str_buf_new(VALUE self, VALUE len) bug_str_buf_new(VALUE self, VALUE len)
{ {
return rb_str_buf_new(NUM2LONG(len)); return rb_str_buf_new(NUM2LONG(len));
} }
VALUE static VALUE
bug_external_str_new(VALUE self, VALUE len, VALUE enc) bug_external_str_new(VALUE self, VALUE len, VALUE enc)
{ {
return rb_external_str_new_with_enc(NULL, NUM2LONG(len), rb_to_encoding(enc)); return rb_external_str_new_with_enc(NULL, NUM2LONG(len), rb_to_encoding(enc));