GNOME Bugzilla – Bug 436011
64 bit system, int incompatible with pointer
Last modified: 2008-11-20 21:13:27 UTC
Please describe the problem: When converting between integers and pointers (like when storing integers in an SList), the following error is reported on 64 bit systems: error: `int' is incompatible with `pointer' This conversion should be possible, since ints easily fit within pointers on 64 bit systems. Steps to reproduce: 1. Try to compile code involving int/pointer conversion on a 64 bit system. 2. 3. Actual results: Emits the above error Expected results: Should compile.. Does this happen every time? Yes Other information:
Simply appending an integer to a GLib.SList<int> works fine here, can you post a minimal example where the reported error occurs?
Unfortunately, I don't have access to a 64 bit machine to test this. The error was reported by one of our users who got the code out of our svn.
Ok, closing then, please reopen if you have a concrete example of the problem.
test case added to vala-tests. It produces only a warning if removing -Werror
The test case in vala-tests passes here on x86_64, can you elaborate?