mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Merge branch 'wfloat-conversion' into 'main'
build: Enable -Wfloat-conversion and fix warnings See merge request GNOME/glib!4126
This commit is contained in:
@@ -2508,7 +2508,7 @@ gi_ir_node_build_typelib (GIIrNode *node,
|
||||
break;
|
||||
case GI_TYPE_TAG_FLOAT:
|
||||
blob->size = sizeof (float);
|
||||
DO_ALIGNED_COPY (&data[blob->offset], parse_float_value (constant->value), float);
|
||||
DO_ALIGNED_COPY (&data[blob->offset], (float) parse_float_value (constant->value), float);
|
||||
break;
|
||||
case GI_TYPE_TAG_DOUBLE:
|
||||
blob->size = sizeof (double);
|
||||
|
Reference in New Issue
Block a user