mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-12-05 21:27:13 -06:00
fix -N for regex filters, fix some warnings
This commit is contained in:
@@ -98,7 +98,7 @@ static int parsecpuinfo()
|
||||
if (strcasecmp(buf,"processor") == 0 && v) {
|
||||
char *endp = 0;
|
||||
long n = strtol(v,&endp,10);
|
||||
if (endp && endp > v && n >= 0 && n < sizeof(cpubitmap) * 8)
|
||||
if (endp && endp > v && n >= 0 && (size_t)n < sizeof(cpubitmap) * 8)
|
||||
cpubitmap[n / 8] |= 1 << (n % 8);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user