buggy source-code for AMD64

Helge Blischke h.blischke at srz.de
Sat Jul 23 09:51:29 PDT 2005


Ronald-be wrote:
> 
> 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
> 
> adding the compiler options "-m64 -march=athlon64 -m128bit-long-double" in makedefs doesn't help. Is this a bug or am I doing something wrong?
> 
> Many thanks!
> 
> Ronald

I suspect your pointers are 64 bit (which is reasonable in a 64 bit architecture)
but an int(eger) is only 32 bit. Thus the source is not "64 bit clean".

Helge

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de




More information about the cups mailing list