Skip to content

Commit

Permalink
Merge pull request #98 from ryannevell/master
Browse files Browse the repository at this point in the history
Fix from_ruby<char const*> to return Ruby String handle directly
  • Loading branch information
jasonroelofs authored May 4, 2017
2 parents 47d553d + deb5055 commit 48968a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rice/to_from_ruby.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ template<>
inline
char const * from_ruby<char const *>(Rice::Object x)
{
return Rice::String(x).str().data();
return Rice::String(x).c_str();
}

template<>
Expand Down

0 comments on commit 48968a2

Please sign in to comment.