summaryrefslogtreecommitdiffstats
path: root/googletest
diff options
context:
space:
mode:
authorJuergen Bohl <jbohl@h-quer.de>2020-04-12 13:31:02 (GMT)
committerJuergen Bohl <jbohl@h-quer.de>2020-04-12 13:31:02 (GMT)
commitbe3ac45cf673c5acfae53c6949a6b525b1631156 (patch)
treeef0c562f79ba28d70a957467baa4fd6a0cd844d6 /googletest
parente3f0319d89f4cbf32993de595d984183b1a9fc57 (diff)
downloadgoogletest-be3ac45cf673c5acfae53c6949a6b525b1631156.zip
googletest-be3ac45cf673c5acfae53c6949a6b525b1631156.tar.gz
googletest-be3ac45cf673c5acfae53c6949a6b525b1631156.tar.bz2
fix signed/unsigned comparison issue (on OpenBSD)refs/pull/2810/head
Diffstat (limited to 'googletest')
-rw-r--r--googletest/src/gtest-port.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/src/gtest-port.cc b/googletest/src/gtest-port.cc
index a05c50a..c180233 100644
--- a/googletest/src/gtest-port.cc
+++ b/googletest/src/gtest-port.cc
@@ -208,7 +208,7 @@ size_t GetThreadCount() {
// exclude empty members
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)
nthreads++;
}