Add default values for some primitive type attributes.
[nit.git] / src / metamodel / partial_order.nit
index 013ca4b..42a0525 100644 (file)
@@ -226,7 +226,7 @@ class PartialOrderElement[E]
        end
        
        # Cached value of _order.length to validade smallers_cache
-       attr _smallers_last_length: Int
+       attr _smallers_last_length: Int = 0
 
        # Cached result of smallers
        attr _smallers_cache: Set[E]