[Fix][Unix] 64-bit issue in ioSetCursorARGB()

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[Fix][Unix] 64-bit issue in ioSetCursorARGB()

Bert Freudenberg
Hi Ian,

someone found a bug using big cursors on a 64 bit system. I naively  
neglected to use pointerForOop() when casting an oop to a pointer ...

In platforms/unix/vm-display-X11/sqUnixX11.c replace
        (char *)cursorBitsIndex
        (char *)pointerForOop(cursorBitsIndex)
That trivial fix is in the olpc branch, and confirmed working:

Please add to the trunk :)

- Bert -