vm: fix warning C4800: forcing value to bool

The warning is issued by the Visual Studio 2015, treated as error.
locals-and-roots
Alexander Iljin 2016-05-27 22:37:44 +03:00 committed by Doug Coleman
parent db9007a713
commit 3ea7fe616e
1 changed files with 1 additions and 1 deletions

View File

@ -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)