Attempt to fix build on 64-bit platforms.
This commit is contained in:
parent
d82b0d0fc7
commit
d693dd43ae
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=86317
3 changed files with 45 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
--- src/af/xap/unix/xap_UnixFont.cpp.orig Mon Aug 4 20:24:53 2003
|
||||
+++ src/af/xap/unix/xap_UnixFont.cpp Mon Aug 4 20:25:50 2003
|
||||
@@ -400,10 +400,10 @@
|
||||
size_t idx = 0;
|
||||
for (size_t i = 0; i < coverage.size(); i += 2)
|
||||
{
|
||||
- UT_UCSChar c1 = static_cast<UT_UCSChar>(reinterpret_cast<UT_uint32>(coverage[i]));
|
||||
+ UT_UCSChar c1 = static_cast<UT_UCSChar>(reinterpret_cast<unsigned long>(coverage[i]));
|
||||
UT_UCSChar c2 =
|
||||
static_cast<UT_UCSChar>(static_cast<UT_uint32>(c1)) +
|
||||
- static_cast<UT_UCSChar>(reinterpret_cast<UT_uint32>(coverage[i + 1]));
|
||||
+ static_cast<UT_UCSChar>(reinterpret_cast<unsigned long>(coverage[i + 1]));
|
||||
for (UT_UCSChar c = c1; c < c2; ++c)
|
||||
{
|
||||
FT_UInt glyph_idx = FT_Get_Char_Index(face, c);
|
|
@ -0,0 +1,15 @@
|
|||
--- src/af/xap/unix/xap_UnixFont.cpp.orig Mon Aug 4 20:24:53 2003
|
||||
+++ src/af/xap/unix/xap_UnixFont.cpp Mon Aug 4 20:25:50 2003
|
||||
@@ -400,10 +400,10 @@
|
||||
size_t idx = 0;
|
||||
for (size_t i = 0; i < coverage.size(); i += 2)
|
||||
{
|
||||
- UT_UCSChar c1 = static_cast<UT_UCSChar>(reinterpret_cast<UT_uint32>(coverage[i]));
|
||||
+ UT_UCSChar c1 = static_cast<UT_UCSChar>(reinterpret_cast<unsigned long>(coverage[i]));
|
||||
UT_UCSChar c2 =
|
||||
static_cast<UT_UCSChar>(static_cast<UT_uint32>(c1)) +
|
||||
- static_cast<UT_UCSChar>(reinterpret_cast<UT_uint32>(coverage[i + 1]));
|
||||
+ static_cast<UT_UCSChar>(reinterpret_cast<unsigned long>(coverage[i + 1]));
|
||||
for (UT_UCSChar c = c1; c < c2; ++c)
|
||||
{
|
||||
FT_UInt glyph_idx = FT_Get_Char_Index(face, c);
|
15
editors/abiword/files/patch-src_af_xap_unix_xap_UnixFont.cpp
Normal file
15
editors/abiword/files/patch-src_af_xap_unix_xap_UnixFont.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
--- src/af/xap/unix/xap_UnixFont.cpp.orig Mon Aug 4 20:24:53 2003
|
||||
+++ src/af/xap/unix/xap_UnixFont.cpp Mon Aug 4 20:25:50 2003
|
||||
@@ -400,10 +400,10 @@
|
||||
size_t idx = 0;
|
||||
for (size_t i = 0; i < coverage.size(); i += 2)
|
||||
{
|
||||
- UT_UCSChar c1 = static_cast<UT_UCSChar>(reinterpret_cast<UT_uint32>(coverage[i]));
|
||||
+ UT_UCSChar c1 = static_cast<UT_UCSChar>(reinterpret_cast<unsigned long>(coverage[i]));
|
||||
UT_UCSChar c2 =
|
||||
static_cast<UT_UCSChar>(static_cast<UT_uint32>(c1)) +
|
||||
- static_cast<UT_UCSChar>(reinterpret_cast<UT_uint32>(coverage[i + 1]));
|
||||
+ static_cast<UT_UCSChar>(reinterpret_cast<unsigned long>(coverage[i + 1]));
|
||||
for (UT_UCSChar c = c1; c < c2; ++c)
|
||||
{
|
||||
FT_UInt glyph_idx = FT_Get_Char_Index(face, c);
|
Loading…
Reference in a new issue