mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Allow NULL to be cast to any type. (Frequently requested, most recently
Thu Nov 21 16:05:50 2002 Owen Taylor <otaylor@redhat.com> * gtype.c (g_type_check_instance_cast): Allow NULL to be cast to any type. (Frequently requested, most recently #99023, Lars Clausen.)
This commit is contained in:
parent
a436817718
commit
892675e05a
@ -1,3 +1,9 @@
|
||||
Thu Nov 21 16:05:50 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtype.c (g_type_check_instance_cast): Allow
|
||||
NULL to be cast to any type. (Frequently requested,
|
||||
most recently #99023, Lars Clausen.)
|
||||
|
||||
Mon Nov 4 14:42:36 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtype.c gsignal.c gvaluearray.c: Include config.h
|
||||
|
@ -2715,9 +2715,6 @@ g_type_check_instance_cast (GTypeInstance *type_instance,
|
||||
g_warning ("invalid unclassed pointer in cast to `%s'",
|
||||
type_descriptive_name_I (iface_type));
|
||||
}
|
||||
else
|
||||
g_warning ("invalid cast from (NULL) pointer to `%s'",
|
||||
type_descriptive_name_I (iface_type));
|
||||
|
||||
return type_instance;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user