Opened 14 years ago

Closed 13 years ago

#28688 closed defect (fixed)

euchre: cast from 'void*' to 'unsigned int' loses precision

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: abender@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: LP64 Cc:
Port: euchre

Description

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.)

Attachments (1)

euchre-64bit.diff (2.5 KB) - added by ryandesign (Ryan Carsten Schmidt) 14 years ago.
proposed patch

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: euchre-64bit.diff added

proposed patch

comment:1 Changed 14 years ago by jmroot (Joshua Root)

%d wouldn't be the right format for intptr_t, it's probably %ld or %lu.

comment:2 Changed 14 years ago 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.

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Keywords: LP64 added
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.