Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Unable to compile svn-head on amd64 due to pointer-cast to qint32 #1590

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: h3x50493D33
[Submitted to the original trac issue database at 5.45pm, Saturday, 14th February 2009]

Don't know why you need to cast a pointer to an integer, but please don't do it as this makes the program not compiling on amd64.

Map/MapFeature.cpp: In member function qint64 MapFeature::idToLong() const:
Map/MapFeature.cpp:175: error: cast from const MapFeature* to qint32 loses precision
make: *** [tmp/linux-g++/obj_debug/MapFeature.o] Error 1
make: *** Waiting for unfinished jobs....
GCC version:
gcc (Gentoo 4.3.2 p1.2) 4.3.2

@openstreetmap-trac
Copy link
Author

Author: koying
[Added to the original trac issue at 4.19am, Sunday, 15th February 2009]

Sorry. It's a dirty trick to generate an unique numerical identifier and casting to int gave a warning on 32bits.

@openstreetmap-trac
Copy link
Author

Author: koying
[Added to the original trac issue at 4.38am, Sunday, 15th February 2009]

(In [13736]) FIX : trying to remove warning causes error on 64bits (fixes #1590)

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

No branches or pull requests

1 participant