Minor bugfix for stricter new compilers

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5100 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-10-29 08:58:06 +00:00
parent 7d6a040ea6
commit 0bee495d18
2 changed files with 10 additions and 4 deletions

View file

@ -612,11 +612,12 @@
Hopefully there is a more general way to figure this out */
size = (size<sizeof(int))?4:size;
#endif
memcpy(datum, va_arg(ap, typeof(char[size])), size);
memcpy(datum, &va_arg(ap, typeof(struct{char x[size];})), size);
break;
default:
{
memcpy(datum, va_arg(ap, typeof(char[size])), size);
[NSException raise: NSInvalidArgumentException
format: @"Could not handle type of %d argument.", i-1];
} /* default */
}
}