sal/osl/w32/socket.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8136a034add5d1218db04ed3ac0ad077ef792c8a
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Fri Feb 22 10:44:45 2019 +0100
Commit:     Stephan Bergmann <sberg...@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 <sberg...@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));
                     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to