From 26b879d549c9baad5628cc8c2957cfd345fa09e6 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Mon, 14 Dec 2009 17:06:19 -0500 Subject: [PATCH] Oops, fix enum_equals --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tig.c b/tig.c index fc7e8c3..d9f26dd 100644 --- a/tig.c +++ b/tig.c @@ -298,7 +298,7 @@ string_enum_compare(const char *str1, const char *str2, int len) } #define enum_equals(entry, str, len) \ - ((entry).namelen == (len) && string_enum_compare((entry).name, str, len)) + ((entry).namelen == (len) && !string_enum_compare((entry).name, str, len)) struct enum_map { const char *name; -- 2.30.2