mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
use an intermediate cast to void * in g_array_index() to not trigger cast
* glib/garray.h: use an intermediate cast to void * in g_array_index() to not trigger cast alignment warnings, fixes #502927. svn path=/trunk/; revision=6092
This commit is contained in:
parent
a26502d794
commit
c17aa5bc42
@ -1,3 +1,8 @@
|
||||
2007-12-10 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* glib/garray.h: use an intermediate cast to void * in g_array_index()
|
||||
to not trigger cast alignment warnings, fixes #502927.
|
||||
|
||||
2007-12-10 15:08:59 Tim Janik <timj@imendio.com>
|
||||
|
||||
* let g_warn_if_fail replace g_assert as discussed here:
|
||||
|
@ -61,7 +61,7 @@ struct _GPtrArray
|
||||
#define g_array_append_val(a,v) g_array_append_vals (a, &(v), 1)
|
||||
#define g_array_prepend_val(a,v) g_array_prepend_vals (a, &(v), 1)
|
||||
#define g_array_insert_val(a,i,v) g_array_insert_vals (a, i, &(v), 1)
|
||||
#define g_array_index(a,t,i) (((t*) (a)->data) [(i)])
|
||||
#define g_array_index(a,t,i) (((t*) (void *) (a)->data) [(i)])
|
||||
|
||||
GArray* g_array_new (gboolean zero_terminated,
|
||||
gboolean clear_,
|
||||
|
Loading…
Reference in New Issue
Block a user