]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11189: [Build-System] Windows build regression fix.
authorAndrey Volk <andywolk@gmail.com>
Tue, 24 Jul 2018 14:46:38 +0000 (17:46 +0300)
committerAndrey Volk <andywolk@gmail.com>
Tue, 24 Jul 2018 14:46:38 +0000 (17:46 +0300)
src/include/switch_utils.h

index 0d56510aa0934af2ba94df2d210b328f0bed4cd1..4b7d949579e76903a31ac956445f866bbb902b20 100644 (file)
@@ -1115,7 +1115,7 @@ static inline uint32_t switch_parse_cpu_string(const char *cpu)
 
                if (divisor <= 0) divisor = 1;
 
-               ncpu = cpu_count / divisor;
+               ncpu = (int)(cpu_count / divisor);
 
                if (ncpu <= 0) return 1;