Skip to content

Commit

Permalink
test/option_parser: avoid -Wtautological-constant-out-of-range-compar…
Browse files Browse the repository at this point in the history
…e warning from clang
fwsmit committed Jun 17, 2021
1 parent 07810fd commit a9be3b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/option_parser.c
Original file line number Diff line number Diff line change
@@ -376,7 +376,7 @@ TEST test_string_to_list_invalid(void)
}
sprintf(buf,"List should not change from invalid values. Expected length %i, got %i", len, get_list_len(val));
ASSERT_EQm(buf, get_list_len(val), len);
ASSERT_EQm("List should not change from invalid values", val[0], 123);
ASSERT_EQm("List should not change from invalid values", (int) val[0], 123);
g_free(val);
PASS();
}
@@ -570,7 +570,7 @@ TEST test_string_to_sepcolor_invalid(void)
ASSERT_FALSEm(buf, set_from_string(&val, s, inputs[i]));
}

ASSERT_EQm("Sep color shouldn't changed from invalid inputs", 123, val.type);
ASSERT_EQm("Sep color shouldn't changed from invalid inputs", 123, (int) val.type);
ASSERT_STR_EQm("Sep color shouldn't changed from invalid inputs", "test123", val.sep_color);
PASS();
}

0 comments on commit a9be3b1

Please sign in to comment.