Kaydet (Commit) ab099923 authored tarafından Caolán McNamara's avatar Caolán McNamara

promote to unsigned int

Change-Id: I84fa219708199cd8293e6887860ba44dd897a2e8
üst f832198e
...@@ -1320,7 +1320,7 @@ static void FindCmap(TrueTypeFont *ttf) ...@@ -1320,7 +1320,7 @@ static void FindCmap(TrueTypeFont *ttf)
} }
if (ttf->cmapType != CMAP_NOT_USABLE) { 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->cmapType = CMAP_NOT_USABLE;
ttf->cmap = nullptr; ttf->cmap = nullptr;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment