mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
inspector: Fix an ubsan warning
These values are too big for int, so cast them to double.
This commit is contained in:
parent
d733e94a8b
commit
f896dddadc
@ -936,7 +936,7 @@ property_editor (GObject *object,
|
||||
G_PARAM_SPEC_INT (spec)->minimum,
|
||||
G_PARAM_SPEC_INT (spec)->maximum,
|
||||
1,
|
||||
MAX ((G_PARAM_SPEC_INT (spec)->maximum - G_PARAM_SPEC_INT (spec)->minimum) / 10, 1),
|
||||
MAX ((((double) G_PARAM_SPEC_INT (spec)->maximum - (double)G_PARAM_SPEC_INT (spec)->minimum)) / 10, 1),
|
||||
0.0);
|
||||
|
||||
prop_edit = gtk_spin_button_new (adj, 1.0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user