Revision: 5713 http://geany.svn.sourceforge.net/geany/?rev=5713&view=rev Author: eht16 Date: 2011-04-12 17:17:54 +0000 (Tue, 12 Apr 2011)
Log Message: ----------- Fix wrong casting of array pointers, thanks Nick.
Modified Paths: -------------- trunk/ChangeLog trunk/src/document.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2011-04-11 16:29:01 UTC (rev 5712) +++ trunk/ChangeLog 2011-04-12 17:17:54 UTC (rev 5713) @@ -1,3 +1,9 @@ +2011-04-12 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * src/document.c: + Fix wrong casting of array pointers, thanks Nick. + + 2011-04-08 Colomban Wendling <colomban(at)geany(dot)org>
* src/document.c, src/document.h, src/editor.c, src/keybindings.c:
Modified: trunk/src/document.c =================================================================== --- trunk/src/document.c 2011-04-11 16:29:01 UTC (rev 5712) +++ trunk/src/document.c 2011-04-12 17:17:54 UTC (rev 5713) @@ -3025,8 +3025,8 @@ */ gint document_sort_by_display_name(gconstpointer a, gconstpointer b) { - GeanyDocument *doc_a = (GeanyDocument*) ((GPtrArray*) a)->pdata; - GeanyDocument *doc_b = (GeanyDocument*) ((GPtrArray*) b)->pdata; + GeanyDocument *doc_a = *((GeanyDocument**) a); + GeanyDocument *doc_b = *((GeanyDocument**) b); gchar *base_name_a, *base_name_b; gint result;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.