summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-09 10:57:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-02-09 10:57:51 +0000
commitab099923e20774a7232b9c9a8b46e3aefe07014e (patch)
tree8956064fcc398a72295e2e11019163e64846b7e6
parentf832198e6a33052c7cc86b25843badfb962a2ae8 (diff)
promote to unsigned int
Change-Id: I84fa219708199cd8293e6887860ba44dd897a2e8
-rw-r--r--vcl/source/fontsubset/sft.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}