include: Fix pointer casting and add check_expected_ptr()
[platform/upstream/cmocka.git] / example / customer_database_test.c
index 9cd1140..2f78b05 100644 (file)
@@ -72,7 +72,8 @@ static void test_get_customer_id_by_name(void **state) {
 
     (void) state; /* unused */
 
-    will_return(mock_query_database, &customer_ids);
+    will_return(mock_query_database,
+                cast_ptr_to_largest_integral_type(&customer_ids));
     will_return(mock_query_database, 1);
 
     rc = get_customer_id_by_name(&connection, "john doe");