From f6d8bca9a969e3e622021b4721a49da6db35c98d Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 12 Feb 2016 12:57:23 +1100 Subject: [PATCH] debug: fix condition sense in CHECK_ENUM --- debug.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug.hpp b/debug.hpp index 895de967..8aa1e7c4 100644 --- a/debug.hpp +++ b/debug.hpp @@ -227,7 +227,7 @@ \ if (std::find (std::cbegin (__e), \ std::cend (__e), \ - __c) != std::end (__e)) { \ + __c) == std::end (__e)) { \ _CHECK_PANIC("expect enum\n" \ "__c: %s is $!", \ #C, __c); \