felipealmeida pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=13606c46474364e9dafa7aa6c1addf3be89950ce

commit 13606c46474364e9dafa7aa6c1addf3be89950ce
Author: Felipe Magno de Almeida <fel...@expertisesolutions.com.br>
Date:   Fri Oct 9 13:48:17 2015 -0300

    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 0b6f5cf..8ffa7dc 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();

-- 


Reply via email to