diff --git a/ext/v8/convert_ruby.h b/ext/v8/convert_ruby.h index 594263a..a7418cc 100644 --- a/ext/v8/convert_ruby.h +++ b/ext/v8/convert_ruby.h @@ -54,7 +54,7 @@ template class RubyValueSource { private: RET convertString(VALUE& value) { - std::string stringValue(RSTRING(value)->ptr); + std::string stringValue(RSTRING_PTR(value)); return dest.pushString(stringValue); } }; diff --git a/ext/v8/v8_str.cpp b/ext/v8/v8_str.cpp index 2f1b554..faf5d14 100644 --- a/ext/v8/v8_str.cpp +++ b/ext/v8/v8_str.cpp @@ -7,7 +7,7 @@ using namespace v8; VALUE v8_str_new(VALUE clazz, VALUE str) { HandleScope handles; - return V8_Ref_Create(clazz, String::New(RSTRING(str)->ptr)); + return V8_Ref_Create(clazz, String::New(RSTRING_PTR(str))); } VALUE v8_str_to_s(VALUE self){ diff --git a/ext/v8/v8_template.cpp b/ext/v8/v8_template.cpp index 3ef286d..96bb04c 100644 --- a/ext/v8/v8_template.cpp +++ b/ext/v8/v8_template.cpp @@ -28,7 +28,7 @@ VALUE v8_Template_Set(VALUE self, VALUE name, VALUE value) { HandleScope handles; Local