Additional fixes for Ruby 1.8 compatibility.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Logan Johnson 2003-04-16 22:35:50 +00:00
commit 7cfddcffc7
3 changed files with 34 additions and 19 deletions

View file

@ -390,7 +390,7 @@ typedef unsigned long VALUE;
%typemap(in) (char *STRING, int LENGTH) {
$1 = ($1_ltype) StringValuePtr($input);
$2 = ($2_ltype) RSTRING($input)->len;
$2 = ($2_ltype) StringValueLen($input);
}
/* Some ANSI C typemaps */