build: enable -Wdouble-promotion

This commit is contained in:
Christoph Reiter 2018-07-29 14:54:34 +02:00
parent 9018e7b13c
commit 573fe41788

View File

@ -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);