mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 02:20:05 +01:00
test: use the double comparison macros
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
cd1ca500cb
commit
d070463a72
1 changed files with 2 additions and 2 deletions
|
|
@ -1750,8 +1750,8 @@ int
|
|||
litest_scale(const struct litest_device *d, unsigned int axis, double val)
|
||||
{
|
||||
int min, max;
|
||||
litest_assert_int_ge((int)val, 0);
|
||||
litest_assert_int_le((int)val, 100);
|
||||
litest_assert_double_ge(val, 0.0);
|
||||
litest_assert_double_le(val, 100.0);
|
||||
litest_assert_int_le(axis, (unsigned int)ABS_Y);
|
||||
|
||||
min = d->interface->min[axis];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue