diff options
author | Khaled Hosny <khaled@aliftype.com> | 2023-03-05 10:21:40 +0200 |
---|---|---|
committer | Khaled Hosny <khaled@aliftype.com> | 2023-03-05 10:21:40 +0200 |
commit | 2ef3fb791b6ddffa56b6809e589be41f160a8a8a (patch) | |
tree | 47a77592e9627e15f291bfed38da8e1ebaf029cd /.gitlab-ci.yml | |
parent | 818b549bafbaef9323ceedffb3930113ae008af7 (diff) | |
download | pango-testmatrix-float.tar.gz |
testmatrix.c: Don’t use g_assert_cmphex() with floatstestmatrix-float
The build was giving this warning:
../tests/testmatrix.c:197:27: warning: implicit conversion from 'double' to 'guint64' (aka 'unsigned long long') changes value from 0.2 to 0 [-Wliteral-conversion]
g_assert_cmphex (r, ==, 0.2);
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
So the test was effectively comparing 0 to 0.
I switched to g_assert_cmpfloat(), but now the tests are failing as the
values don’t mach. I don’t know which is wrong, the expected value or
the code being tested.
Diffstat (limited to '.gitlab-ci.yml')
0 files changed, 0 insertions, 0 deletions