summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp2
-rw-r--r--Build/source/texk/web2c/xetexdir/XeTeXswap.h10
2 files changed, 1 insertions, 11 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp b/Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp
index 8395003bdbc..96e17f40889 100644
--- a/Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp
+++ b/Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp
@@ -584,7 +584,7 @@ XeTeXFontMgr::getOpSizeRecAndStyleFlags(Font* theFont)
const POSTTable* postTable = (const POSTTable*)getFontTablePtr(font, LE_POST_TABLE_TAG);
if (postTable != NULL) {
- theFont->slant = (int)(1000 * (tan(Fix2X(-SWAP(postTable->italicAngle)) * M_PI / 180.0)));
+ theFont->slant = (int)(1000 * (tan(Fix2X(-SWAP(UInt32(postTable->italicAngle))) * M_PI / 180.0)));
}
deleteFont(font);
}
diff --git a/Build/source/texk/web2c/xetexdir/XeTeXswap.h b/Build/source/texk/web2c/xetexdir/XeTeXswap.h
index 311b8a791f8..18cccf3722f 100644
--- a/Build/source/texk/web2c/xetexdir/XeTeXswap.h
+++ b/Build/source/texk/web2c/xetexdir/XeTeXswap.h
@@ -58,16 +58,6 @@ SWAP32(const UInt32 p)
}
#ifdef __cplusplus
-
-#ifdef XETEX_MAC
-#include "sfnt.h" /* for the 'fixed' typedef */
-static inline fixed
-SWAP(fixed p)
-{
- return (fixed)SWAP32((UInt32)p);
-}
-#endif
-
static inline UInt16
SWAP(UInt16 p)
{