summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2015-02-11 11:43:17 +0100
committerKrzysztof Opasiak <k.opasiak@samsung.com>2015-03-06 16:12:07 +0100
commit1d25bf33abbc22a50adb511a0e5a15b08c8da043 (patch)
treefff415384ef632e02e775215aa489ebd79585441 /tests
parentc8a0f7868b5d91297064c2e448f35eb5fd4e5813 (diff)
downloadlibusbg-1d25bf33abbc22a50adb511a0e5a15b08c8da043.tar.gz
libusbg-1d25bf33abbc22a50adb511a0e5a15b08c8da043.tar.bz2
libusbg-1d25bf33abbc22a50adb511a0e5a15b08c8da043.zip
libusbg: tests: Use cast_to_largest_integral_type()
Direct cast from pointer to integer of different size causes ugly compiler warning. To avoid this use dedicated macro from cmocka. Change-Id: I56f4095dd8f98c8349d02b421f02de1d61e0b2b8 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/usbg-test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/usbg-test.c b/tests/usbg-test.c
index 4f3cb8e..e7ce209 100644
--- a/tests/usbg-test.c
+++ b/tests/usbg-test.c
@@ -426,6 +426,8 @@ int path_equal_display_error(const LargestIntegralType actual, const LargestInte
void assert_path_equal(const char *actual, const char *expected)
{
- if (path_equal_display_error((const LargestIntegralType)actual, (const LargestIntegralType)expected) == 0)
+ if (path_equal_display_error(
+ cast_to_largest_integral_type(actual),
+ cast_to_largest_integral_type(expected)) == 0)
fail();
}