Revert change ... leave objc_skip_offset() buggy for code which depends on that behavior. It's better just to avoid using it anywhere else.

main
rfm 16 years ago
parent c8412c806d
commit 7b535dcda4

@ -678,14 +678,16 @@ objc_skip_typespec (const char *type)
/*
Skip an offset as part of a method encoding. This is prepended by a
'+' if the argument is passed in registers.
For historical reasons this is buggy and actually skips an extra byte
whether there is an offset or not.
*/
inline const char *
objc_skip_offset (const char *type)
{
if (*type == '+')
type++;
while (isdigit ((unsigned char) *type))
type++;
while (isdigit ((unsigned char) *++type))
;
return type;
}

Loading…
Cancel
Save