summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2015-10-09 13:48:17 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2015-10-09 13:51:20 -0300
commit13606c46474364e9dafa7aa6c1addf3be89950ce (patch)
tree38dfb5b1ae5f399a81dd6d3c1a0ce15c25e0df83 /src/lib/eolian_cxx
parent4a92415d12bffefa6fcf216656b0a4b1e618d226 (diff)
eolian-cxx: Fixed assert which was a tautology
Fixed the assert to the correct check @fix CID 1316018
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/eo_validate.hh8
1 files 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)
71{ 71{
72 // class name and type 72 // class name and type
73 _validate(cls.name, cls); 73 _validate(cls.name, cls);
74 assert(cls.type != eo_class::regular_ || 74 assert(cls.type == eo_class::regular_ ||
75 cls.type != eo_class::regular_noninst_ || 75 cls.type == eo_class::regular_noninst_ ||
76 cls.type != eo_class::interface_ || 76 cls.type == eo_class::interface_ ||
77 cls.type != eo_class::mixin_); 77 cls.type == eo_class::mixin_);
78 78
79 // constructors 79 // constructors
80 for (auto it = cls.constructors.cbegin(), last = cls.constructors.cend(); 80 for (auto it = cls.constructors.cbegin(), last = cls.constructors.cend();