diff options
author | Charlie Savage <cfis@interserv.com> | 2005-10-08 19:51:51 +0000 |
---|---|---|
committer | Charlie Savage <cfis@interserv.com> | 2005-10-08 19:51:51 +0000 |
commit | a17e510b41e7dd31404488ad9e7568657c899812 (patch) | |
tree | 4344cf321644ca90eef128ca9d13231ef7b12512 | |
parent | 5818b97ffabcef9c8319b638cc3fa0e3cef077d4 (diff) | |
download | swig-a17e510b41e7dd31404488ad9e7568657c899812.tar.gz |
Fixed handling of char. This was needed due to changes in handling of %constants in ruby.cxx
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7625 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r-- | SWIG/Lib/ruby/rubystrings.swg | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/SWIG/Lib/ruby/rubystrings.swg b/SWIG/Lib/ruby/rubystrings.swg index 7d2bb97f7..f46aa1d2d 100644 --- a/SWIG/Lib/ruby/rubystrings.swg +++ b/SWIG/Lib/ruby/rubystrings.swg @@ -86,8 +86,10 @@ /* --- Constants --- */ -%typemap(constant) char - "rb_define_const($module,\"$symname\", rb_str_new($1,1));"; +%typemap(constant) char { + char temp = $1; + rb_define_const($module,"$symname", rb_str_new(&temp,1)); +} %typemap(constant) char * "rb_define_const($module,\"$symname\", rb_str_new2($1));"; |