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>
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();
}