From: Akim Demaille Date: Tue, 22 Oct 2013 14:29:22 +0000 (+0200) Subject: fix: uniqstr are already pointers X-Git-Tag: v3.0.1~13 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/1a9646fc9140f896500a812672742b82634c2249 fix: uniqstr are already pointers * src/uniqstr.c (uniqstr_assert): Remove incorrect double indirection, and now useless cast. --- diff --git a/src/uniqstr.c b/src/uniqstr.c index 37345dc7..b460ea7c 100644 --- a/src/uniqstr.c +++ b/src/uniqstr.c @@ -77,8 +77,8 @@ uniqstr_vsprintf (char const *format, ...) void uniqstr_assert (char const *str) { - uniqstr *s = hash_lookup (uniqstrs_table, str); - if (!s || s != (uniqstr *)str) + uniqstr s = hash_lookup (uniqstrs_table, str); + if (!s || s != str) { error (0, 0, "not a uniqstr: %s", quotearg (str));