From 91e2150ee2b8a760385c862c584dbdeda2328289 Mon Sep 17 00:00:00 2001 From: Tony Kelman Date: Sat, 24 Jun 2017 08:58:33 -0700 Subject: [PATCH] Fix broken use of Int8 as boolean in codegen test (#22506) --- test/codegen.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/codegen.jl b/test/codegen.jl index d3be8d7486480c..ba7c55b5417438 100644 --- a/test/codegen.jl +++ b/test/codegen.jl @@ -3,7 +3,7 @@ # tests for codegen and optimizations const opt_level = Base.JLOptions().opt_level -const coverage = Base.JLOptions().code_coverage || Base.JLOptions().malloc_log +const coverage = (Base.JLOptions().code_coverage > 0) || (Base.JLOptions().malloc_log > 0) const Iptr = sizeof(Int) == 8 ? "i64" : "i32" # `_dump_function` might be more efficient but it doesn't really matter here...