diff options
author | Tor Lillqvist <tml@iki.fi> | 2000-10-26 17:53:08 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2000-10-26 17:53:08 +0000 |
commit | f42bc9318674b1b48a301f477c80fb944010b6c4 (patch) | |
tree | ac90b56daef17c0606df9bb38f3fa33660c1c015 /glib | |
parent | 6f83e76ea8e27d1ab12f43a756d1ec46ac9726ff (diff) | |
download | glib-f42bc9318674b1b48a301f477c80fb944010b6c4.tar.gz |
Fix gccisms (pointer arithmetic on void pointer, label without statement
2000-10-26 Tor Lillqvist <tml@iki.fi>
* gbsearcharray.c (bsearch_array_insert): Fix gccisms (pointer
arithmetic on void pointer, label without statement following.
* gtype.c (type_node_fundamental_info): Don't apply unary minus to
result of sizeof operator, it can be unsigned. Cast first to
gssize.
* gobject.def: Add new functions.
* makefile.{mingw,msc}.in: Add new objects.
Diffstat (limited to 'glib')
-rw-r--r-- | glib/gbsearcharray.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/glib/gbsearcharray.c b/glib/gbsearcharray.c index 9aa1f450f..199115300 100644 --- a/glib/gbsearcharray.c +++ b/glib/gbsearcharray.c @@ -90,10 +90,11 @@ bsearch_array_insert (GBSearchArray *barray, } else barray->nodes = g_realloc (barray->nodes, barray->n_nodes * sizeof_node); - check = barray->nodes + i * sizeof_node; + check = (char *) barray->nodes + i * sizeof_node; g_memmove (check + sizeof_node, check, (n_nodes - i) * sizeof_node); replace = TRUE; SKIP_GROW: + ; } if (replace) memcpy (check, key_node, sizeof_node); |