Skip to content

Commit 8d92da0

Browse files
committed
tests: fix an int vs pointer comparison
1 parent edb3098 commit 8d92da0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/adopt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,8 @@ void test_adopt__parse_arg(void)
675675

676676
void test_adopt__parse_arg_mixed_with_switches(void)
677677
{
678-
int foo = 0;
679-
char *bar = NULL, *arg1 = NULL, *arg2 = NULL;
678+
int foo = 0, bar = 0;
679+
char *arg1 = NULL, *arg2 = NULL;
680680
adopt_opt result;
681681

682682
adopt_spec specs[] = {
@@ -692,7 +692,7 @@ void test_adopt__parse_arg_mixed_with_switches(void)
692692
cl_must_pass(adopt_parse(&result, specs, args, 4, ADOPT_PARSE_DEFAULT));
693693

694694
cl_assert_equal_i('f', foo);
695-
cl_assert_equal_p('b', bar);
695+
cl_assert_equal_i('b', bar);
696696
cl_assert_equal_s("bar", arg1);
697697
cl_assert_equal_p("baz", arg2);
698698

0 commit comments

Comments
 (0)