Permalink
Browse files

Remove calls to deprecated STR2CSTR

  • Loading branch information...
1 parent b14b60b commit df1f91f5b4d48d442f8ba728c040a4418bc2a66d @mrgordon mrgordon committed May 3, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 ext/liblinear_wrap.cxx
  2. +1 −1 liblinear-1.8/ruby/liblinear_wrap.cxx
View
@@ -1703,7 +1703,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
- char *cstr = STR2CSTR(obj);
+ char *cstr = StringValuePtr(obj);
size_t size = RSTRING_LEN(obj) + 1;
if (cptr) {
@@ -1703,7 +1703,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
- char *cstr = STR2CSTR(obj);
+ char *cstr = StringValuePtr(obj);
size_t size = RSTRING_LEN(obj) + 1;
if (cptr) {

0 comments on commit df1f91f

Please sign in to comment.