Skip to content

Commit ddc8c21

Browse files
remove uneeded casting
1 parent 95b492d commit ddc8c21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

code/logic/fossil/test/assume.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,7 +2179,7 @@ extern "C" {
21792179
*/
21802180
#ifdef __cplusplus
21812181
#define ASSUME_ITS_EQUAL_BSTR(actual, expected) \
2182-
FOSSIL_TEST_ASSUME(strcmp((const char*)(actual.c_str()), (const char*)(expected.c_str())) == 0, "Expected byte string " #actual " to be equal to " #expected)
2182+
FOSSIL_TEST_ASSUME(strcmp((actual.c_str()), (expected.c_str())) == 0, "Expected byte string " #actual " to be equal to " #expected)
21832183
#else
21842184
#define ASSUME_ITS_EQUAL_BSTR(actual, expected) \
21852185
FOSSIL_TEST_ASSUME(strcmp((const char*)(actual), (const char*)(expected)) == 0, "Expected byte string " #actual " to be equal to " #expected)
@@ -2193,7 +2193,7 @@ extern "C" {
21932193
*/
21942194
#ifdef __cplusplus
21952195
#define ASSUME_NOT_EQUAL_BSTR(actual, expected) \
2196-
FOSSIL_TEST_ASSUME(strcmp((const char*)(actual.c_str()), (const char*)(expected.c_str())) != 0, "Expected byte string " #actual " to not be equal to " #expected)
2196+
FOSSIL_TEST_ASSUME(strcmp((actual.c_str()), (expected.c_str())) != 0, "Expected byte string " #actual " to not be equal to " #expected)
21972197
#else
21982198
#define ASSUME_NOT_EQUAL_BSTR(actual, expected) \
21992199
FOSSIL_TEST_ASSUME(strcmp((const char*)(actual), (const char*)(expected)) != 0, "Expected byte string " #actual " to not be equal to " #expected)
@@ -2207,7 +2207,7 @@ extern "C" {
22072207
*/
22082208
#ifdef __cplusplus
22092209
#define ASSUME_ITS_LENGTH_EQUAL_BSTR(actual, expected_len) \
2210-
FOSSIL_TEST_ASSUME(strlen((const char*)(actual.c_str())) == (expected_len), "Expected length of byte string " #actual " to be equal to " #expected_len)
2210+
FOSSIL_TEST_ASSUME(strlen((actual.c_str())) == (expected_len), "Expected length of byte string " #actual " to be equal to " #expected_len)
22112211
#else
22122212
#define ASSUME_ITS_LENGTH_EQUAL_BSTR(actual, expected_len) \
22132213
FOSSIL_TEST_ASSUME(strlen((const char*)(actual)) == (expected_len), "Expected length of byte string " #actual " to be equal to " #expected_len)

0 commit comments

Comments
 (0)