mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
build: enable -Wdouble-promotion
This commit is contained in:
parent
9018e7b13c
commit
573fe41788
@ -748,7 +748,7 @@ write_constant_value (const gchar *namespace,
|
|||||||
xml_printf (file, "%" G_GUINT64_FORMAT, value->v_uint64);
|
xml_printf (file, "%" G_GUINT64_FORMAT, value->v_uint64);
|
||||||
break;
|
break;
|
||||||
case GI_TYPE_TAG_FLOAT:
|
case GI_TYPE_TAG_FLOAT:
|
||||||
xml_printf (file, "%f", value->v_float);
|
xml_printf (file, "%f", (double)value->v_float);
|
||||||
break;
|
break;
|
||||||
case GI_TYPE_TAG_DOUBLE:
|
case GI_TYPE_TAG_DOUBLE:
|
||||||
xml_printf (file, "%f", value->v_double);
|
xml_printf (file, "%f", value->v_double);
|
||||||
|
Loading…
Reference in New Issue
Block a user