[gobject-introspection: 3/5] regress: Avoid double-promotion warning



commit 9ffda061e6726c5668a01a25a49b0c06c71c0453
Author: Philip Chimento <philip chimento gmail com>
Date:   Wed May 9 23:39:19 2018 -0700

    regress: Avoid double-promotion warning
    
    Float literal is silently promoted to a double here. Change it to a
    double literal.

 tests/scanner/regress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index a321c5eb..e1da3d17 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -2668,7 +2668,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass)
                                "A contained double",
                                G_MINDOUBLE,
                                G_MAXDOUBLE,
-                               1.0f,
+                               1.0,
                                G_PARAM_READWRITE);
   g_object_class_install_property (gobject_class,
                                    PROP_TEST_OBJ_DOUBLE,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]