sc/source/core/data/dptabres.cxx |    2 +-
 sc/source/core/data/dputil.cxx   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 263a6df93013200df3abecfa733fbc558cc48869
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Fri Dec 15 11:11:51 2017 +0100

    -Werror,-Wsign-compare (clang-cl)
    
    Change-Id: Ia9cd493df71c520259c96a71f11237ee97937b32
    Reviewed-on: https://gerrit.libreoffice.org/46515
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sc/source/core/data/dptabres.cxx b/sc/source/core/data/dptabres.cxx
index e7bae87f6fc1..f54e29113839 100644
--- a/sc/source/core/data/dptabres.cxx
+++ b/sc/source/core/data/dptabres.cxx
@@ -837,7 +837,7 @@ OUString ScDPResultData::GetMeasureString(long nMeasure, 
bool bForce, ScSubTotal
     {
         //  for user-specified subtotal function with all measures,
         //  display only function name
-        assert(eForceFunc < SAL_N_ELEMENTS(aFuncStrIds));
+        assert(unsigned(eForceFunc) < SAL_N_ELEMENTS(aFuncStrIds));
         if ( eForceFunc != SUBTOTAL_FUNC_NONE )
             return ScGlobal::GetRscString(aFuncStrIds[eForceFunc]);
 
diff --git a/sc/source/core/data/dputil.cxx b/sc/source/core/data/dputil.cxx
index ed8d097b08f3..95e4a8beb3e1 100644
--- a/sc/source/core/data/dputil.cxx
+++ b/sc/source/core/data/dputil.cxx
@@ -390,7 +390,7 @@ const char* aFuncStrIds[] = {
 OUString ScDPUtil::getDisplayedMeasureName(const OUString& rName, 
ScSubTotalFunc eFunc)
 {
     OUStringBuffer aRet;
-    assert(eFunc < SAL_N_ELEMENTS(aFuncStrIds));
+    assert(unsigned(eFunc) < SAL_N_ELEMENTS(aFuncStrIds));
     const char* pId = aFuncStrIds[eFunc];
     if (pId)
     {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to