mirror of
https://github.com/google/googletest.git
synced 2025-01-15 09:15:48 +08:00
fix signed/unsigned comparison issue (on OpenBSD)
This commit is contained in:
parent
e3f0319d89
commit
be3ac45cf6
@ -208,7 +208,7 @@ size_t GetThreadCount() {
|
|||||||
|
|
||||||
// exclude empty members
|
// exclude empty members
|
||||||
int nthreads = 0;
|
int nthreads = 0;
|
||||||
for (int i = 0; i < size / mib[4]; i++) {
|
for (size_t i = 0; i < size / mib[4]; i++) {
|
||||||
if (info[i].p_tid != -1)
|
if (info[i].p_tid != -1)
|
||||||
nthreads++;
|
nthreads++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user