From 6832f91958e6c2cc44a8c4a4e126ea20b8c8d5a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 30 Aug 2022 02:19:56 +0200 Subject: Fix Unique Good, Bad. Simplify HTML parser. Good and Bad should obviously do the exact opposite thing to what they did. --- c/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/util.h') diff --git a/c/util.h b/c/util.h index f9e3057..7ed7636 100644 --- a/c/util.h +++ b/c/util.h @@ -72,11 +72,11 @@ struct Unique } bool Good(T u) noexcept { - return ok = v == u; + return !(ok = v == u); } bool Bad(T u) noexcept { - return ok = v != u; + return !(ok = v != u); } ~Unique() { -- cgit v1.2.3