Module Name: xsrc Committed By: rjs Date: Sun Jul 16 22:01:36 UTC 2023
Modified Files: xsrc/external/mit/MesaLib/dist/src/util: u_cpu_detect.c Log Message: sizeof() returns size_t type. To generate a diff of this commit: cvs rdiff -u -r1.1.1.3 -r1.2 \ xsrc/external/mit/MesaLib/dist/src/util/u_cpu_detect.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: xsrc/external/mit/MesaLib/dist/src/util/u_cpu_detect.c diff -u xsrc/external/mit/MesaLib/dist/src/util/u_cpu_detect.c:1.1.1.3 xsrc/external/mit/MesaLib/dist/src/util/u_cpu_detect.c:1.2 --- xsrc/external/mit/MesaLib/dist/src/util/u_cpu_detect.c:1.1.1.3 Mon May 9 01:23:43 2022 +++ xsrc/external/mit/MesaLib/dist/src/util/u_cpu_detect.c Sun Jul 16 22:01:35 2023 @@ -623,7 +623,7 @@ util_cpu_detect_once(void) if (available_cpus == 0) { const int mib[] = { CTL_HW, HW_NCPUONLINE }; int ncpu; - int len = sizeof(ncpu); + size_t len = sizeof(ncpu); sysctl(mib, 2, &ncpu, &len, NULL, 0); available_cpus = ncpu;