From 81de4073588ee2bd899656c2bb5e6f825a4f34e8 Mon Sep 17 00:00:00 2001 From: theraven Date: Tue, 5 Jan 2010 14:26:02 +0000 Subject: [PATCH] Fixed method_getNumberOfArguments(), report by Mizuki. --- runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime.c b/runtime.c index 02497af..1c6cde1 100644 --- a/runtime.c +++ b/runtime.c @@ -565,7 +565,7 @@ unsigned method_getNumberOfArguments(Method method) { const char *types = method->method_types; unsigned int count = 0; - while('\0' == *types) + while('\0' != *types) { types = objc_skip_argspec(types); count++;