mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +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
ab69e289d5
commit
853c667cc1
2 changed files with 10 additions and 4 deletions
|
@ -1,7 +1,12 @@
|
|||
Fri Oct 29 10:08:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSInvocation.m: ([-initWithTarget:selector:]) possible fix
|
||||
for structure arguments grabbed from varargs.
|
||||
|
||||
Tue Oct 19 11:28:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSScanner.m: skipToNextField() - cope with a nil set of characters
|
||||
to be skipped.
|
||||
* Source/NSScanner.m: skipToNextField() - cope with a nil set of
|
||||
characters to be skipped.
|
||||
|
||||
Fri Oct 15 01:28:16 1999 Lyndon Tremblay <humasect@coolmail.com>
|
||||
|
||||
|
|
|
@ -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…
Reference in a new issue