xmllite/tests: Fix clang warning.

Reported by Gerald Pfeifer.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-11-05 11:39:53 +03:00 committed by Alexandre Julliard
parent 9b7f9f2d08
commit b077271cfb
1 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ static void test_read_state(IXmlReader *reader, XmlReadState expected,
state = -1; /* invalid state value */ state = -1; /* invalid state value */
IXmlReader_GetProperty(reader, XmlReaderProperty_ReadState, &state); IXmlReader_GetProperty(reader, XmlReaderProperty_ReadState, &state);
if (exp_broken == -1) if (exp_broken == expected)
broken_state = FALSE; broken_state = FALSE;
else else
broken_state = broken(exp_broken == state); 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)); 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 TEST_READER_STATE2(reader, state, brk) test_read_state(reader, state, brk, __LINE__)
#define reader_value(a,b) _reader_value(__LINE__,a,b) #define reader_value(a,b) _reader_value(__LINE__,a,b)