]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11189: [Build-System] Fix Windows build.
authorAndrey Volk <andywolk@gmail.com>
Tue, 24 Jul 2018 13:11:54 +0000 (16:11 +0300)
committerAndrey Volk <andywolk@gmail.com>
Tue, 24 Jul 2018 13:11:54 +0000 (16:11 +0300)
src/include/switch_utils.h

index 7e812bb1309be43dd5bef0a4d288c9285b3fefaf..0d56510aa0934af2ba94df2d210b328f0bed4cd1 100644 (file)
@@ -1111,7 +1111,7 @@ static inline uint32_t switch_parse_cpu_string(const char *cpu)
                        max = atoi(has_max + 1);
                }
 
-               divisor = atof(cpu);
+               divisor = (float)atof(cpu);
 
                if (divisor <= 0) divisor = 1;