Commit b077271c authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

xmllite/tests: Fix clang warning.

Reported by Gerald Pfeifer. Signed-off-by: 's avatarNikolay Sivov <nsivov@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 9b7f9f2d
......@@ -273,7 +273,7 @@ static void test_read_state(IXmlReader *reader, XmlReadState expected,
state = -1; /* invalid state value */
IXmlReader_GetProperty(reader, XmlReaderProperty_ReadState, &state);
if (exp_broken == -1)
if (exp_broken == expected)
broken_state = FALSE;
else
broken_state = broken(exp_broken == state);
......@@ -282,7 +282,7 @@ static void test_read_state(IXmlReader *reader, XmlReadState expected,
state_to_str(expected), state_to_str(state));
}
#define TEST_READER_STATE(reader, state) test_read_state(reader, state, -1, __LINE__)
#define TEST_READER_STATE(reader, state) test_read_state(reader, state, state, __LINE__)
#define TEST_READER_STATE2(reader, state, brk) test_read_state(reader, state, brk, __LINE__)
#define reader_value(a,b) _reader_value(__LINE__,a,b)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment