mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-05-31 11:52:15 +00:00
fix -N for regex filters, fix some warnings
This commit is contained in:
parent
5df37bb545
commit
f1f25ba2b6
3 changed files with 10 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue