aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc/objc-encoding.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/objc/objc-encoding.c')
-rw-r--r--gcc/objc/objc-encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/objc/objc-encoding.c b/gcc/objc/objc-encoding.c
index c4067b1..7ad920a 100644
--- a/gcc/objc/objc-encoding.c
+++ b/gcc/objc/objc-encoding.c
@@ -733,7 +733,7 @@ encode_type (tree type, int curtype, int format)
char *enc = (char *) obstack_base (&util_obstack) + curtype;
/* Rewrite "in const" from "nr" to "rn". */
- if (curtype >= 1 && !strncmp (enc - 1, "nr", 2))
+ if (curtype >= 1 && startswith (enc - 1, "nr"))
memcpy (enc - 1, "rn", 2);
}
}