src: Modified compilers for the support of the new Integers
[nit.git] / src / frontend / div_by_zero.nit
index b7426e1..16802c0 100644 (file)
@@ -68,7 +68,7 @@ private class DivByZeroVisitor
 
                # 2. The second operand must be an integer literal
                var op2 = node.n_expr2
-               if not op2 isa AIntExpr then return
+               if not op2 isa AIntegerExpr then return
 
                # 3. Its value must be 0
                # Note: because of `literal_phase` the `value` method exists