Opened 10 years ago

Closed 10 years ago

#1590 closed defect (fixed)

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

Reported by: h3x50493D33 Owned by: Chris Browet
Priority: critical Milestone:
Component: merkaartor Version:
Keywords: Cc:

Description

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

Change History (2)

comment:1 Changed 10 years ago by Chris Browet

Owner: changed from cbro@… to Chris Browet
Status: newassigned

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

comment:2 Changed 10 years ago by Chris Browet

Resolution: fixed
Status: assignedclosed

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

Note: See TracTickets for help on using tickets.