inspector: Fix an ubsan warning
These values are too big for int, so cast them to double.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user