xmloff/source/text/XMLIndexTOCContext.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1c2aaa98ed551f8465fbcc65cd8adc16f4aab657
Author: Stephan Bergmann <[email protected]>
Date:   Fri Dec 15 11:12:57 2017 +0100

    -Werror,-Wsign-compare (clang-cl)
    
    Change-Id: I4ef3bbcbf93eb2ba6a622b69fefed06321d82cf9
    Reviewed-on: https://gerrit.libreoffice.org/46517
    Tested-by: Jenkins <[email protected]>
    Reviewed-by: Stephan Bergmann <[email protected]>

diff --git a/xmloff/source/text/XMLIndexTOCContext.cxx 
b/xmloff/source/text/XMLIndexTOCContext.cxx
index cd1f17010fbd..ce73f0052e57 100644
--- a/xmloff/source/text/XMLIndexTOCContext.cxx
+++ b/xmloff/source/text/XMLIndexTOCContext.cxx
@@ -104,7 +104,7 @@ XMLIndexTOCContext::XMLIndexTOCContext(SvXMLImport& rImport,
         if (SvXMLUnitConverter::convertEnum(eIndexType, rLocalName, 
aIndexTypeMap))
         {
             // check for array index:
-            OSL_ENSURE(eIndexType < (SAL_N_ELEMENTS(aIndexServiceMap)), "index 
out of range");
+            OSL_ENSURE(unsigned(eIndexType) < 
(SAL_N_ELEMENTS(aIndexServiceMap)), "index out of range");
             OSL_ENSURE(SAL_N_ELEMENTS(aIndexServiceMap) ==
                        SAL_N_ELEMENTS(aIndexSourceElementMap),
                        "service and source element maps must be same size");
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to