[cups.bugs] [CRIT] STR #1226: Bug for AMD64 : type conflicts in

Ronald BAL ronald55 at tiscali.be
Tue Jul 26 13:18:59 PDT 2005


[STR New]

Hello,

When I try to compile the code (using "make") I always get a compiler
error, in the program GfxFont.cxx : "GfxFont.cxx: In member function
'Gushort* Gfx8bitFont::getCodeToGIDmap(TrueTypeFontFile*)'
GfxFont.cxx:972: error: cast from 'void*' to 'integer' loses precision

Checking source code : there is indeed a type-cast to int

As I'm using a 64-bit version of the OS (Fedora Core 4 x86_64) the pointer
is 64-bit while int is 32-bit.

adding the compiler options "-m64 -march=athlon64 -m128bit-long-double" in
makedefs doesn't help.

Can you fix this bug and check the code for other illegal type-casts?

machine specs :
processor : AMD athlon 3500+
motherboard : ASUS A8N SLI
chipset : nVIDIA 4
memory : Kingston DDR400 1024 MB
graphics card : ASUS EN5750 PCIeX
operating system : Linux : Fedora Core 4 x86_64

Many thanks,

Ronald

Link: http://www.cups.org/str.php?L1226
Version: 1.1.23





More information about the cups-devel mailing list