aboutsummaryrefslogtreecommitdiff
path: root/c/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/util.h')
-rw-r--r--c/util.h4
1 files changed, 2 insertions, 2 deletions
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()
{