[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

On Tue, Sep 13, 2005 at 08:17:39PM +0200, Michael Koch wrote:
> SWT generally runs on 64 bit archs. I built my Eclipse packages on amd64.
> The problems is that you need to run JNIGeneratorApp on the sources. This
> application replaces the integers used normally on 32-bit archs with longs
> for 64-bit archs. Its IMO a bad design but the SWT people took this approach
> to not need to use 8 byte variables to store pointers in them on 32-bit archs.

Which is a pretty lame excuse, because sizeof(long) == 4 on 32-bit archs
(not just Linux but most other platforms as well), and sizeof(long) == 8
on 64-bit archs...

Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon@debian.org                                   http://www.debian.org/

Attachment: signature.asc
Description: Digital signature

Reply to: