From 3fcd78831391c4b9a3fdf9aebaa899bde8a3a880 Mon Sep 17 00:00:00 2001 From: Lyle Johnson Date: Tue, 17 Aug 2004 01:07:05 +0000 Subject: [PATCH] Corrected some of the "throws" typemaps. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6101 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/ruby/ruby.swg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/ruby/ruby.swg b/Lib/ruby/ruby.swg index 4426d75a6..bae51abcf 100644 --- a/Lib/ruby/ruby.swg +++ b/Lib/ruby/ruby.swg @@ -580,15 +580,15 @@ typedef unsigned long VALUE; unsigned int, unsigned long, unsigned short { - rb_exc_raise(rb_exc_new3(rb_eRuntimeError, INT2NUM($1))); + rb_exc_raise(rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(INT2NUM($1)))); } %typemap(throws) SWIGTYPE { $&1_ltype temp = new $1_ltype($1); if ($&1_descriptor->clientdata) { - rb_exc_raise(rb_exc_new3(((swig_class *) ($&1_descriptor->clientdata))->klass, SWIG_NewPointerObj(temp, $&1_descriptor, 1))); + rb_exc_raise(rb_exc_new3(((swig_class *) ($&1_descriptor->clientdata))->klass, rb_obj_as_string(SWIG_NewPointerObj(temp, $&1_descriptor, 1)))); } else { - rb_exc_raise(rb_exc_new3(rb_eRuntimeError, SWIG_NewPointerObj(temp, $&1_descriptor, 1))); + rb_exc_raise(rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(SWIG_NewPointerObj(temp, $&1_descriptor, 1)))); } }