[MacPorts] #28688: euchre: cast from 'void*' to 'unsigned int' loses precision
#28688: euchre: cast from 'void*' to 'unsigned int' loses precision -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: abender@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: euchre -------------------------------------+-------------------------------------- euchre 0.7c does not compile on Snow Leopard on a 64-bit Mac, saying: {{{ Game.cpp:62: error: cast from 'void*' to 'unsigned int' loses precision }}} I created the attached patch, which at least allows the program to compile and open. (Don't know if it runs correctly.) -- Ticket URL: <https://trac.macports.org/ticket/28688> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28688: euchre: cast from 'void*' to 'unsigned int' loses precision -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: abender@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: euchre -------------------------------------+-------------------------------------- Comment(by jmr@…): %d wouldn't be the right format for intptr_t, it's probably %ld or %lu. -- Ticket URL: <https://trac.macports.org/ticket/28688#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28688: euchre: cast from 'void*' to 'unsigned int' loses precision -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: abender@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: euchre -------------------------------------+-------------------------------------- Comment(by abender@…): The patch looks good to me but I can no longer maintain the package. I haven't built it since I released it five years ago, nor have I kept up with any changes to the original package (though I don't think there are any). If someone wants to apply the patch and release it, go ahead. The format specifier for intptr_t would be %ld, as it is signed. -- Ticket URL: <https://trac.macports.org/ticket/28688#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28688: euchre: cast from 'void*' to 'unsigned int' loses precision --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: abender@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: LP64 Port: euchre | --------------------------------------+------------------------------------- Changes (by jmr@…): * status: new => closed * keywords: => LP64 * resolution: => fixed Comment: r90266 -- Ticket URL: <https://trac.macports.org/ticket/28688#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts