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

use ptr diff rather than int

Change-Id: Ia174fd94c57cc3c899c10e1c0dc5968965a50427
üst fb902968
......@@ -1564,7 +1564,7 @@ static int doOpenTTFont( sal_uInt32 facenum, TrueTypeFont* t )
}
else if( const_cast<sal_uInt8*>(t->tables[i]) + t->tlens[i] > t->ptr + t->fsize )
{
int nMaxLen = (t->ptr + t->fsize) - t->tables[i];
sal_PtrDiff nMaxLen = (t->ptr + t->fsize) - t->tables[i];
if( nMaxLen < 0 )
nMaxLen = 0;
t->tlens[i] = nMaxLen;
......
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