vm: fix warning C4800: forcing value to bool
The warning is issued by the Visual Studio 2015, treated as error.locals-and-roots
parent
db9007a713
commit
3ea7fe616e
|
@ -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) {
|
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)
|
if (rate > 0 && !running_p)
|
||||||
start_sampling_profiler(rate);
|
start_sampling_profiler(rate);
|
||||||
else if (rate == 0 && running_p)
|
else if (rate == 0 && running_p)
|
||||||
|
|
Loading…
Reference in New Issue