From b382c7d42ce022c183f77121d361e574378c8e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?= Date: Tue, 31 Dec 2013 13:11:53 +0100 Subject: Don't implicitly cast NULL to a bool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The code is wrong and causes an error when building with clang 3.4 (-Werror,-Wnull-conversion) Change-Id: I223649ebcebf6f5df4b1024651bf07e85288f0b8 Signed-off-by: Bernhard Rosenkränzer --- vm/compiler/Compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm/compiler/Compiler.cpp') diff --git a/vm/compiler/Compiler.cpp b/vm/compiler/Compiler.cpp index f5b96b1ef..04d645668 100644 --- a/vm/compiler/Compiler.cpp +++ b/vm/compiler/Compiler.cpp @@ -129,7 +129,7 @@ bool dvmCompilerWorkEnqueue(const u2 *pc, WorkOrderKind kind, void* info) newOrder->pc = pc; newOrder->kind = kind; newOrder->info = info; - newOrder->result.methodCompilationAborted = NULL; + newOrder->result.methodCompilationAborted = false; newOrder->result.codeAddress = NULL; newOrder->result.discardResult = (kind == kWorkOrderTraceDebug) ? true : false; -- cgit v1.2.3