Permalink
Browse files

Merge pull request #8 from mrgordon/no_STR2CSTR

Remove calls to deprecated STR2CSTR
  • Loading branch information...
2 parents b14b60b + df1f91f commit 719b3076aa8aa81daf0af73a6680fd76ec6d7fc2 @tomz committed Aug 11, 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 719b307

Please sign in to comment.