Tidied again.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5112 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-10-31 05:45:13 +00:00
parent fc62f44ad3
commit 6b14ba31f0

View file

@ -613,8 +613,14 @@
Hopefully there is a more general way to figure this out */
size = (size<sizeof(int))?4:size;
#endif
NSLog(@"Unsafe handling of type of %d argument.", i-1];
memcpy(datum, (char)va_arg(ap, int), copysize);
NSLog(@"Unsafe handling of type of %d argument.", i-1);
memcpy(datum, ap, size);
{
struct {
char x[size];
} dummy;
dummy = va_arg(ap, typeof(dummy));
}
break;
}
}