Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug for AMD64 : type conflicts in 64-bit environment #1226

Closed
michaelrsweet opened this issue Jul 26, 2005 · 3 comments
Closed

Bug for AMD64 : type conflicts in 64-bit environment #1226

michaelrsweet opened this issue Jul 26, 2005 · 3 comments

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.1.23
CUPS.org User: ronald-be

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

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

What version of GCC are you using?

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: ronald-be

I'm using version 4.0.0

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant