mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 17:26:17 +01:00
gobject: Fix various implicit conversions from size_t to smaller types
Basically various trivial instances of the following MSVC compiler warning: ``` ../gio/gio-tool-set.c(50): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data ``` Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
f7b48b5c25
commit
e9655c597a
@ -47,7 +47,7 @@ show_nodes (GType type,
|
|||||||
const gchar *indent)
|
const gchar *indent)
|
||||||
{
|
{
|
||||||
GType *children;
|
GType *children;
|
||||||
guint i;
|
size_t i;
|
||||||
|
|
||||||
if (!type)
|
if (!type)
|
||||||
return;
|
return;
|
||||||
|
@ -1073,7 +1073,7 @@ type_data_make_W (TypeNode *node,
|
|||||||
{
|
{
|
||||||
TypeData *data;
|
TypeData *data;
|
||||||
GTypeValueTable *vtable = NULL;
|
GTypeValueTable *vtable = NULL;
|
||||||
guint vtable_size = 0;
|
size_t vtable_size = 0;
|
||||||
|
|
||||||
g_assert (node->data == NULL && info != NULL);
|
g_assert (node->data == NULL && info != NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user