diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-23 06:05:15 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-23 06:05:15 +0000 |
commit | 0748ee8b900a80228b4eb83152ba4d84f76b3366 (patch) | |
tree | f7280f7ffdd699fb8731977516808683f6fe4c8f /ext | |
parent | 3377aebed4fafbc40e873a4923af39d96c249fe7 (diff) | |
download | ruby-0748ee8b900a80228b4eb83152ba4d84f76b3366.tar.gz |
Use NUM2INT to convert short values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dl/sym.c | 4 |
1 files 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); |