ref: refs/heads/master
commit a4a5f1d4dc87274fd88d33a31a07db4ef8e429a8
Author: Klaus Kämpf
Date: Thu Feb 26 16:50:10 2009 +0100
Use StringValue instead of rb_check_convert_type
---
bindings/repo.i | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bindings/repo.i b/bindings/repo.i
index 109f3f8..972d2dc 100644
--- a/bindings/repo.i
+++ b/bindings/repo.i
@@ -67,7 +67,7 @@ typedef struct _Repo {} Repo;
{
const char *fname;
/* try string conversion if not already a string */
- name = rb_check_convert_type( name, T_STRING, "String", "to_s" );
+ name = StringValue( name );
fname = StringValuePtr( name );
#else
void add_solv( const char *fname )
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org