blob: 64ffdcb85a152a401043f4ad9271ac2f9972e8c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-ad,v 1.11 2004/06/27 20:06:24 dmcmahill Exp $
--- src/af/xap/unix/xap_UnixFont.cpp.orig Fri Aug 22 20:52:07 2003
+++ src/af/xap/unix/xap_UnixFont.cpp
@@ -400,10 +400,10 @@ const encoding_pair *XAP_UnixFont::loadE
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>((UT_uint32)(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>((UT_uint32)(coverage[i + 1]));
for (UT_UCSChar c = c1; c < c2; ++c)
{
FT_UInt glyph_idx = FT_Get_Char_Index(face, c);
|