diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-26 14:06:31 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-26 14:06:31 +0000 |
commit | 9701a1b296a12d3823c4dd19b2dd4f43ddb1ab2f (patch) | |
tree | d2856d8fb04bcbeda71d57d236abc8eaf41abaf6 /psprint | |
parent | 040217f20956a46e563bf664b8fa21ef9be237c5 (diff) |
INTEGRATION: CWS vcl83 (1.44.4); FILE MERGED
2007/10/22 08:57:28 pl 1.44.4.1: #i82823# remove warnings (thanks pjanik)
Diffstat (limited to 'psprint')
-rw-r--r-- | psprint/source/fontsubset/sft.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/psprint/source/fontsubset/sft.c b/psprint/source/fontsubset/sft.c index 40463f94dcb5..2e8fa4eb4533 100644 --- a/psprint/source/fontsubset/sft.c +++ b/psprint/source/fontsubset/sft.c @@ -4,9 +4,9 @@ * * $RCSfile: sft.c,v $ * - * $Revision: 1.44 $ + * $Revision: 1.45 $ * - * last change: $Author: vg $ $Date: 2007-09-20 14:24:36 $ + * last change: $Author: ihi $ $Date: 2007-11-26 15:06:31 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -654,7 +654,7 @@ static int GetCompoundTTOutline(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPo index = GetUInt16(ptr, 2, 1); ptr += 4; - if (listFind(glyphlist, (void *) (int) index)) { + if (listFind(glyphlist, (void *) (sal_IntPtr) index)) { #if OSL_DEBUG_LEVEL > 1 fprintf(stderr, "Endless loop found in a compound glyph.\n"); fprintf(stderr, "%d -> ", index); @@ -668,7 +668,7 @@ static int GetCompoundTTOutline(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPo #endif } - listAppend(glyphlist, (void *) (int) index); + listAppend(glyphlist, (void *) (sal_IntPtr) index); #ifdef DEBUG2 fprintf(stderr,"glyphlist: += %d\n", index); @@ -852,7 +852,7 @@ static int GetTTGlyphOutline(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPoint if (!glyphlist) { glyphlistFlag = 1; glyphlist = listNewEmpty(); - listAppend(glyphlist, (void *) glyphID); + listAppend(glyphlist, (void *) (sal_IntPtr) glyphID); } res = GetCompoundTTOutline(ttf, glyphID, pointArray, metrics, glyphlist); if (glyphlistFlag) { @@ -1948,7 +1948,7 @@ int GetTTGlyphComponents(TrueTypeFont *ttf, sal_uInt32 glyphID, list glyphlist) if (glyphID >= ttf->nglyphs) return 0; ptr = glyf + ttf->goffsets[glyphID]; - listAppend(glyphlist, (void *) glyphID); + listAppend(glyphlist, (void *) (sal_IntPtr) glyphID); if (GetInt16(ptr, 0, 1) == -1) { sal_uInt16 flags, index; |