From 0748ee8b900a80228b4eb83152ba4d84f76b3366 Mon Sep 17 00:00:00 2001 From: ttate Date: Sat, 23 Oct 2004 06:05:15 +0000 Subject: [PATCH] Use NUM2INT to convert short values. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/sym.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/dl/sym.c b/ext/dl/sym.c index 4d30643518..751b2be39f 100644 --- a/ext/dl/sym.c +++ b/ext/dl/sym.c @@ -519,11 +519,11 @@ rb_dlsym_call(int argc, VALUE argv[], VALUE self) PUSH_P(ftype); break; case 'H': - ANY2H(args[i]) = DLSHORT(NUM2CHR(argv[i])); + ANY2H(args[i]) = DLSHORT(NUM2INT(argv[i])); PUSH_C(ftype); break; case 'h': - ANY2H(dargs[i]) = DLSHORT(NUM2CHR(argv[i])); + ANY2H(dargs[i]) = DLSHORT(NUM2INT(argv[i])); ANY2P(args[i]) = DLVOIDP(&(ANY2H(dargs[i]))); dtypes[i] = 'h'; PUSH_P(ftype);