From 13606c46474364e9dafa7aa6c1addf3be89950ce Mon Sep 17 00:00:00 2001 From: Felipe Magno de Almeida Date: Fri, 9 Oct 2015 13:48:17 -0300 Subject: [PATCH] eolian-cxx: Fixed assert which was a tautology Fixed the assert to the correct check @fix CID 1316018 --- src/lib/eolian_cxx/eo_validate.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/eolian_cxx/eo_validate.hh b/src/lib/eolian_cxx/eo_validate.hh index 0b6f5cffca..8ffa7dccd7 100644 --- a/src/lib/eolian_cxx/eo_validate.hh +++ b/src/lib/eolian_cxx/eo_validate.hh @@ -71,10 +71,10 @@ eo_class_validate(const eo_class& cls) { // class name and type _validate(cls.name, cls); - assert(cls.type != eo_class::regular_ || - cls.type != eo_class::regular_noninst_ || - cls.type != eo_class::interface_ || - cls.type != eo_class::mixin_); + assert(cls.type == eo_class::regular_ || + cls.type == eo_class::regular_noninst_ || + cls.type == eo_class::interface_ || + cls.type == eo_class::mixin_); // constructors for (auto it = cls.constructors.cbegin(), last = cls.constructors.cend();