eolian-cxx: Fixed assert which was a tautology

Fixed the assert to the correct check

@fix CID 1316018
This commit is contained in:
Felipe Magno de Almeida 2015-10-09 13:48:17 -03:00
parent 4a92415d12
commit 13606c4647
1 changed files with 4 additions and 4 deletions

View File

@ -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();