nitc: explicitly cast long to int
[nit.git] / src / compiler / abstract_compiler.nit
index 7407a20..d608967 100644 (file)
@@ -3057,7 +3057,7 @@ redef class AMethPropdef
                        end
                end
                if pname == "exit" then
-                       v.add("exit({arguments[1]});")
+                       v.add("exit((int){arguments[1]});")
                        return true
                else if pname == "sys" then
                        v.ret(v.new_expr("glob_sys", ret.as(not null)))