mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
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:
parent
7d6a040ea6
commit
0bee495d18
2 changed files with 10 additions and 4 deletions
|
@ -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 */
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue