Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] SWT on 64-bit platforms

I'd like to know if there is a plan to make SWT (in particular the Gtk
port) work on 64-bit platforms.

Right now the Gtk code uses `int' to represent handles, e.g.:

 [OS.java]
    public static final native int gtk_fixed_new();

and:

  [swt.c]
    return (jint)gtk_fixed_new();

These int values are 32-bits (per the Java spec), but are cast back
and forth to pointers in the native code.  That means the code isn't
64-bit clean.

One fix would be to s/int/long/ in all places where the handle
represents a pointer.

Tom


Back to the top