File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) {
209209 if (cpuspeed == 0 )
210210 /* If sysctl hw.cputype == CPU_TYPE_ARM64, the correct value is unavailable
211211 * from Apple, but we can hard-code it here to a plausible value. */
212- cpuspeed = 2400000000 ;
212+ cpuspeed = 2400000000U ;
213213
214214 if (host_processor_info (mach_host_self (), PROCESSOR_CPU_LOAD_INFO , & numcpus ,
215215 (processor_info_array_t * )& info ,
@@ -235,7 +235,7 @@ int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) {
235235 cpu_info -> cpu_times .irq = 0 ;
236236
237237 cpu_info -> model = uv__strdup (model );
238- cpu_info -> speed = cpuspeed / 1000000 ;
238+ cpu_info -> speed = ( int )( cpuspeed / 1000000 ) ;
239239 }
240240 vm_deallocate (mach_task_self (), (vm_address_t )info , msg_type );
241241
You can’t perform that action at this time.
0 commit comments