From 3ea7fe616e405882655f422c776fdad8015cad55 Mon Sep 17 00:00:00 2001 From: Alexander Iljin Date: Fri, 27 May 2016 22:37:44 +0300 Subject: [PATCH] vm: fix warning C4800: forcing value to bool The warning is issued by the Visual Studio 2015, treated as error. --- vm/sampling_profiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/sampling_profiler.cpp b/vm/sampling_profiler.cpp index 62617101e0..ab1e1ade84 100644 --- a/vm/sampling_profiler.cpp +++ b/vm/sampling_profiler.cpp @@ -57,7 +57,7 @@ void factor_vm::record_callstack_sample(cell* begin, cell* end, bool prolog_p) { } void factor_vm::set_sampling_profiler(fixnum rate) { - bool running_p = (bool)atomic::load(&sampling_profiler_p); + bool running_p = (atomic::load(&sampling_profiler_p) != 0); if (rate > 0 && !running_p) start_sampling_profiler(rate); else if (rate == 0 && running_p)