From f0df0e9e07f9e0c8534cc77262cca9bae97ea618 Mon Sep 17 00:00:00 2001 From: William Leeson Date: Wed, 20 Oct 2021 20:51:56 +0200 Subject: Fix: Add cast to atof for CYCLES_CONCURRENT_STATES_FACTOR env variable parsing. The conversion from double to float was causing a build failure. Differential Revision: https://developer.blender.org/D12946 --- intern/cycles/device/hip/queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern') diff --git a/intern/cycles/device/hip/queue.cpp b/intern/cycles/device/hip/queue.cpp index 0d9f5916d30..6cb29670f94 100644 --- a/intern/cycles/device/hip/queue.cpp +++ b/intern/cycles/device/hip/queue.cpp @@ -53,7 +53,7 @@ int HIPDeviceQueue::num_concurrent_states(const size_t state_size) const const char *factor_str = getenv("CYCLES_CONCURRENT_STATES_FACTOR"); if (factor_str) { - float factor = atof(factor_str); + float factor = (float)atof(factor_str); if (!factor) VLOG(3) << "CYCLES_CONCURRENT_STATES_FACTOR evaluated to 0"; num_states = max((int)(num_states * factor), 1024); -- cgit v1.2.3