diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-02-22 10:44:45 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-02-22 13:10:47 +0100 |
commit | 8136a034add5d1218db04ed3ac0ad077ef792c8a (patch) | |
tree | 35da12a56def269a55ce4436fea887dc04a95432 /sal | |
parent | ea5ad6cdede807a0cf4c46b8a0493e56782c493a (diff) |
-Werror,-Wsign-compare (clang-cl)
Change-Id: I7e9a709fe36b38ee8842dd34ab06f9608f498ec8
Reviewed-on: https://gerrit.libreoffice.org/68197
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/socket.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |