mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 22:16:16 +01:00
Don't use implicit casts from void * since this will get included from C++
Wed Oct 25 19:11:03 2000 Owen Taylor <otaylor@redhat.com> * gbsearcharray.h (g_bsearch_array_get_nth): Don't use implicit casts from void * since this will get included from C++ too at times.
This commit is contained in:
parent
900d0ed069
commit
b1278dc611
@ -82,7 +82,7 @@ g_bsearch_array_lookup (GBSearchArray *barray,
|
||||
GBSearchCompareFunc cmp_func = barray->cmp_func;
|
||||
gint sizeof_node = barray->sizeof_node;
|
||||
guint n_nodes = barray->n_nodes;
|
||||
guint8 *nodes = barray->nodes;
|
||||
guint8 *nodes = (guint8 *) barray->nodes;
|
||||
|
||||
nodes -= sizeof_node;
|
||||
do
|
||||
@ -115,7 +115,7 @@ g_bsearch_array_get_nth (GBSearchArray *barray,
|
||||
{
|
||||
if (n < barray->n_nodes)
|
||||
{
|
||||
guint8 *nodes = barray->nodes;
|
||||
guint8 *nodes = (guint8 *) barray->nodes;
|
||||
|
||||
return nodes + n * barray->sizeof_node;
|
||||
}
|
||||
|
@ -1,3 +1,9 @@
|
||||
Wed Oct 25 19:11:03 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gbsearcharray.h (g_bsearch_array_get_nth): Don't use implicit
|
||||
casts from void * since this will get included from C++ too
|
||||
at times.
|
||||
|
||||
Thu Oct 26 00:30:27 2000 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gvaluetypes.[hc]: added g_value_set_static_string().
|
||||
|
@ -82,7 +82,7 @@ g_bsearch_array_lookup (GBSearchArray *barray,
|
||||
GBSearchCompareFunc cmp_func = barray->cmp_func;
|
||||
gint sizeof_node = barray->sizeof_node;
|
||||
guint n_nodes = barray->n_nodes;
|
||||
guint8 *nodes = barray->nodes;
|
||||
guint8 *nodes = (guint8 *) barray->nodes;
|
||||
|
||||
nodes -= sizeof_node;
|
||||
do
|
||||
@ -115,7 +115,7 @@ g_bsearch_array_get_nth (GBSearchArray *barray,
|
||||
{
|
||||
if (n < barray->n_nodes)
|
||||
{
|
||||
guint8 *nodes = barray->nodes;
|
||||
guint8 *nodes = (guint8 *) barray->nodes;
|
||||
|
||||
return nodes + n * barray->sizeof_node;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user