Remove workaround for vala <0.23.2, fixes bug 723822
authorMaciej Piechotka <uzytkownik2@gmail.com>
Sat, 8 Feb 2014 20:54:59 +0000 (21:54 +0100)
committerMaciej Piechotka <uzytkownik2@gmail.com>
Sat, 8 Feb 2014 20:54:59 +0000 (21:54 +0100)
The old workaround causes reading/writing from invalid pointers,
when compiled with 0.23.2.

configure.ac
tests/testdata.vala

index c74ed40..9046686 100644 (file)
@@ -57,7 +57,7 @@ AC_SUBST(GLIB_LIBS)
 
 GOBJECT_INTROSPECTION_CHECK([0.9.0])
 
-VALA_CHECK([0.21.0])
+VALA_CHECK([0.23.2])
 
 AC_OUTPUT([Makefile
            gee-0.8.pc
index 5f00c97..e69a970 100644 (file)
@@ -104,7 +104,7 @@ public class TestData {
        }
 
        private static string[] sort_array (owned string[] array) {
-               qsort_with_data<string> (array, sizeof(string), (a, b) => {return strcmp(*(string **)a, *(string **)b);});
+               qsort_with_data<string> (array, sizeof(string), (a, b) => {return strcmp(a, b);});
                return (owned)array;
        }
 }