vcl/source/fontsubset/sft.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ab099923e20774a7232b9c9a8b46e3aefe07014e
Author: Caolán McNamara <caol...@redhat.com>
Date:   Fri Feb 9 10:57:43 2018 +0000

    promote to unsigned int
    
    Change-Id: I84fa219708199cd8293e6887860ba44dd897a2e8

diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx
index 5f9663ae12df..7449725b4ac1 100644
--- a/vcl/source/fontsubset/sft.cxx
+++ b/vcl/source/fontsubset/sft.cxx
@@ -1320,7 +1320,7 @@ static void FindCmap(TrueTypeFont *ttf)
     }
 
     if (ttf->cmapType != CMAP_NOT_USABLE) {
-        if( (ttf->cmap - ttf->ptr + 2) > static_cast<sal_uInt32>(ttf->fsize) ) 
{
+        if( (ttf->cmap - ttf->ptr + 2U) > static_cast<sal_uInt32>(ttf->fsize) 
) {
             ttf->cmapType = CMAP_NOT_USABLE;
             ttf->cmap = nullptr;
         }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to