From d717f472a5f97c14f0963966d0c36814f2d86139 Mon Sep 17 00:00:00 2001 From: rfm Date: Wed, 14 Apr 2010 11:57:15 +0000 Subject: [PATCH] Revert change ... leave objc_skip_offset() buggy for code which depends on that behavior. It's better just to avoid using it anywhere else. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/libobjc/trunk@30155 72102866-910b-0410-8b05-ffd578937521 --- encoding.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/encoding.c b/encoding.c index 70908c4..812bd13 100644 --- a/encoding.c +++ b/encoding.c @@ -692,14 +692,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; }