mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use NUM2INT to convert short values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3377aebed4
commit
0748ee8b90
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue