[at-spi2-core: 4/6] Fix clang warning about int/float comparison
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core: 4/6] Fix clang warning about int/float comparison
- Date: Thu, 7 Jul 2022 22:29:30 +0000 (UTC)
commit 5f82518cab2f360b381bdd105c4b46f3dde2c469
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Jul 7 12:35:20 2022 -0500
Fix clang warning about int/float comparison
tests/at-spi2-atk/atk_test_component.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/at-spi2-atk/atk_test_component.c b/tests/at-spi2-atk/atk_test_component.c
index 6ce7439e..b4b6a86e 100644
--- a/tests/at-spi2-atk/atk_test_component.c
+++ b/tests/at-spi2-atk/atk_test_component.c
@@ -130,7 +130,7 @@ atk_test_component_get_alpha (gpointer fixture, gconstpointer user_data)
g_assert (iface != NULL);
gdouble ret = atspi_component_get_alpha (iface, NULL);
- g_assert_cmpint (ret, ==, 2.5);
+ g_assert_cmpfloat (ret, ==, 2.5);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]