зеркало из https://github.com/github/ruby.git
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:
Родитель
3377aebed4
Коммит
0748ee8b90
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче