[Libreoffice-commits] core.git: sal/osl
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Feb 22 12:11:21 UTC 2019
sal/osl/w32/socket.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 8136a034add5d1218db04ed3ac0ad077ef792c8a
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Feb 22 10:44:45 2019 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Feb 22 13:10:47 2019 +0100
-Werror,-Wsign-compare (clang-cl)
Change-Id: I7e9a709fe36b38ee8842dd34ab06f9608f498ec8
Reviewed-on: https://gerrit.libreoffice.org/68197
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/sal/osl/w32/socket.cxx b/sal/osl/w32/socket.cxx
index 97960828e17a..3bee3ecde178 100644
--- a/sal/osl/w32/socket.cxx
+++ b/sal/osl/w32/socket.cxx
@@ -635,7 +635,7 @@ oslSocketResult SAL_CALL osl_getLocalHostname (rtl_uString **strLocalHostname)
(RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_ERROR
| RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_ERROR
| RTL_TEXTTOUNICODE_FLAGS_INVALID_ERROR))
- && u.getLength() < SAL_N_ELEMENTS(LocalHostname))
+ && sal_uInt32(u.getLength()) < SAL_N_ELEMENTS(LocalHostname))
{
memcpy(LocalHostname, u.getStr(), (u.getLength() + 1) * sizeof (sal_Unicode));
}
More information about the Libreoffice-commits
mailing list