mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Fix errors spotted by Fred
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29662 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bbcf9bd03e
commit
e689e6a654
6 changed files with 26 additions and 16 deletions
|
@ -402,6 +402,7 @@ next_arg(const char *typePtr, NSArgumentInfo *info, char *outTypes)
|
|||
*args = '\0';
|
||||
|
||||
/* Skip to the first arg type, taking note of where the qualifiers start.
|
||||
* Assume that casting _argFrameLength to int will not lose information.
|
||||
*/
|
||||
p = skip_offset (p);
|
||||
q = p;
|
||||
|
@ -414,13 +415,13 @@ next_arg(const char *typePtr, NSArgumentInfo *info, char *outTypes)
|
|||
size = objc_promoted_size (p);
|
||||
p = objc_skip_typespec (p);
|
||||
strncat(args, q, p - q);
|
||||
sprintf(args + strlen(args), "%d", _argFrameLength);
|
||||
sprintf(args + strlen(args), "%d", (int)_argFrameLength);
|
||||
_argFrameLength += size;
|
||||
p = skip_offset (p);
|
||||
q = p;
|
||||
p = objc_skip_type_qualifiers (p);
|
||||
}
|
||||
sprintf(ret + strlen(ret), "%d", _argFrameLength);
|
||||
sprintf(ret + strlen(ret), "%d", (int)_argFrameLength);
|
||||
_methodTypes = NSZoneMalloc(NSDefaultMallocZone(),
|
||||
strlen(args) + strlen(ret) + 1);
|
||||
strcpy((char*)_methodTypes, ret);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue