1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

dl.c (rb_dl_scan_callback_args): memcpy() -> cast and substitution

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ttate 2002-06-10 07:52:10 +00:00
parent 48bd82e993
commit abca067fb6

View file

@ -28,7 +28,7 @@ rb_dl_scan_callback_args(long stack[], const char *proto,
case 'C':
{
char v;
memcpy(&v, sp, sizeof(long));
v = (char)(*sp);
sp++;
val = INT2NUM(v);
}
@ -36,7 +36,7 @@ rb_dl_scan_callback_args(long stack[], const char *proto,
case 'H':
{
short v;
memcpy(&v, sp, sizeof(long));
v = (short)(*sp);
sp++;
val = INT2NUM(v);
}
@ -44,7 +44,7 @@ rb_dl_scan_callback_args(long stack[], const char *proto,
case 'I':
{
int v;
memcpy(&v, sp, sizeof(long));
v = (int)(*sp);
sp++;
val = INT2NUM(v);
}
@ -52,7 +52,7 @@ rb_dl_scan_callback_args(long stack[], const char *proto,
case 'L':
{
long v;
memcpy(&v, sp, sizeof(long));
v = (long)(*sp);
sp++;
val = INT2NUM(v);
}