GNOME Bugzilla – Bug 433288
pointer and integer conversion
Last modified: 2008-10-18 00:11:49 UTC
Please describe the problem: Right now G_POINTER_TO_INT is only invoked on return values of method invocations. It should really work wherever a pointer is assigned to an integer. I specifically ran into this when using foreach with an SList<uint>. Steps to reproduce: SList<uint> indices = new SList<uint>(); foreach(uint i in indices) { } Actual results: C compiler gives the warning: warning: initialization makes integer from pointer without a cast Expected results: no warnings, with correct cast Does this happen every time? yes Other information:
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
Added to vala-tests