From: Jonas Fonseca Date: Mon, 14 Dec 2009 22:06:19 +0000 (-0500) Subject: Oops, fix enum_equals X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=26b879d549c9baad5628cc8c2957cfd345fa09e6;p=tig.git Oops, fix enum_equals --- 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;