Fix 64-bit bustage. Bug 247629, patch by Sunil <funtoos@yahoo.com>, r=jshin,

sr=bzbarsky, a=chofmann
This commit is contained in:
bzbarsky%mit.edu 2005-05-01 17:36:19 +00:00
parent e86f704ac7
commit fea8560b58
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ static NS_DEFINE_CID(kCharSetManagerCID, NS_ICHARSETCONVERTERMANAGER_CID);
// Define the FreeType2 functions we resolve at run time.
// see the comment near nsFreeType2::DoneFace() for more info
//
#define NS_FT2_OFFSET(f) (int)&((nsFreeType2*)0)->f
#define NS_FT2_OFFSET(f) (long)&((nsFreeType2*)0)->f
FtFuncList nsFreeType2::FtFuncs [] = {
{"FT_Done_Face", NS_FT2_OFFSET(nsFT_Done_Face), PR_TRUE},
{"FT_Done_FreeType", NS_FT2_OFFSET(nsFT_Done_FreeType), PR_TRUE},

View File

@ -145,7 +145,7 @@ nsFreeTypeFace * nsFreeTypeGetFaceID(nsFontCatalogEntry *aFce);
typedef struct {
const char *FuncName;
int FuncOffset;
long FuncOffset;
const PRBool Required;
} FtFuncList;