diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-07 17:17:14 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-09 10:15:48 +0000 |
commit | 5b426038a7befcaf0d05824ffb20200ff8833ad3 (patch) | |
tree | ad3061c55f4ec3a2c4301811f13f009cb08da57e | |
parent | fb902968cb6b8b4e01d5a33b93dce4c5a60bb83a (diff) |
use ptr diff rather than int
Change-Id: Ia174fd94c57cc3c899c10e1c0dc5968965a50427
-rw-r--r-- | vcl/source/fontsubset/sft.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index cae835510712..81184aaf9d75 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -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; |