Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/MesaLib/dist/src/util sizeof() returns size_t...



details:   https://anonhg.NetBSD.org/xsrc/rev/afec37c7b11d
branches:  trunk
changeset: 7582:afec37c7b11d
user:      rjs <rjs%NetBSD.org@localhost>
date:      Sun Jul 16 22:01:35 2023 +0000

description:
sizeof() returns size_t type.

diffstat:

 external/mit/MesaLib/dist/src/util/u_cpu_detect.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 61a892ca1549 -r afec37c7b11d external/mit/MesaLib/dist/src/util/u_cpu_detect.c
--- a/external/mit/MesaLib/dist/src/util/u_cpu_detect.c Sun Jul 16 21:58:14 2023 +0000
+++ b/external/mit/MesaLib/dist/src/util/u_cpu_detect.c Sun Jul 16 22:01:35 2023 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index