GNOME Bugzilla – Bug 791556
Accidental type aliasing when passing int arrays to generic methods results in concatenated ints
Last modified: 2018-01-15 18:33:48 UTC
(Sorry if the title is a little vague, wasn't quite sure how to tersely explain) If a method accepts a generic-typed array and you pass an int array in on a 64-bit system, the generated Vala code assumes there's one value per gpointer-sized element when in reality there's two. There's a test case coming in a moment for more info. I'm not sure how (or if) this can really be fixed, but it seems like a moderately severe bug.
Created attachment 365475 [details] Test case Expected output: ** Message: test.vala:4: 0xF ** Message: test.vala:4: 0x1F Actual output: ** Message: test.vala:4: 0x1F0000000F ** Message: test.vala:4: 0x7F0000003F
*** This bug has been marked as a duplicate of bug 792534 ***