mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-11 03:34:05 +02:00
build: enable -Wdouble-promotion
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user