summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-30 10:37:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-03-30 10:37:30 +0200
commit45aaf4d48f7b68e0a798fb16b8ac18fb4fce8d95 (patch)
treea7cda808ca95bca1b3cfd591ce4a179f9681382f /sal
parentb24644564af045e3607c897422fdb37545b9a089 (diff)
loplugin:loopvartoosmall
Change-Id: If714cafd9f2786610a03b1f5f6466a9ea06e46e6
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/salinit.cxx2
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);