summaryrefslogtreecommitdiff
path: root/test/test-load.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2019-06-25 11:17:48 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2019-06-27 08:41:31 +1000
commit2f9a326367ebcabf1150f64141993b0e9325b5b7 (patch)
tree89913d0abcb71f402830a4fdda037eb3a9946029 /test/test-load.c
parent3ba00bb9de3486c72e4ef8e52395def907bb7dc0 (diff)
downloadlibwacom-2f9a326367ebcabf1150f64141993b0e9325b5b7.tar.gz
Document the signed-ness mismatch between vendor ids
The vendor and product ids are all signed integers except in the libwacom_match code where they are uint32_t. We can't change that without API changes (not ABI though), so let's just document it and move on. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/test-load.c')
-rw-r--r--test/test-load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-load.c b/test/test-load.c
index b1c5236..3afaa43 100644
--- a/test/test-load.c
+++ b/test/test-load.c
@@ -49,9 +49,9 @@ static void check_multiple_match(WacomDevice *device)
nmatches++;
if (libwacom_match_get_bustype(*match) == libwacom_get_bustype(device))
found_bus = 1;
- if (libwacom_match_get_vendor_id(*match) == libwacom_get_vendor_id(device))
+ if ((int)libwacom_match_get_vendor_id(*match) == libwacom_get_vendor_id(device))
found_vendor_id = 1;
- if (libwacom_match_get_product_id(*match) == libwacom_get_product_id(device))
+ if ((int)libwacom_match_get_product_id(*match) == libwacom_get_product_id(device))
found_product_id = 1;
}