diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-30 10:37:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-30 10:37:30 +0200 |
commit | 45aaf4d48f7b68e0a798fb16b8ac18fb4fce8d95 (patch) | |
tree | a7cda808ca95bca1b3cfd591ce4a179f9681382f /sal | |
parent | b24644564af045e3607c897422fdb37545b9a089 (diff) |
loplugin:loopvartoosmall
Change-Id: If714cafd9f2786610a03b1f5f6466a9ea06e46e6
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/salinit.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/salinit.cxx b/sal/osl/unx/salinit.cxx index fdde9e84980c..b8e6555d81e3 100644 --- a/sal/osl/unx/salinit.cxx +++ b/sal/osl/unx/salinit.cxx @@ -64,7 +64,7 @@ void sal_detail_initialize(int argc, char ** argv) { openMax = 1024; } assert(openMax >= 0 && openMax <= std::numeric_limits< int >::max()); - for (int fd = 3; fd < openMax; ++fd) { + for (int fd = 3; fd < int(openMax); ++fd) { struct stat s; if (fstat(fd, &s) != -1 && S_ISREG(s.st_mode)) close(fd); |