diff options
author | David Robillard <d@drobilla.net> | 2020-06-21 17:38:09 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:06:23 +0200 |
commit | 6cba665d30cca6f1a0df3b46071e50efdb928192 (patch) | |
tree | 2ee07112e2067049d6db6c52e6c10f203cd8b73f /tests/serd_test.c | |
parent | 8353731836d8a79265d93792d29b8b4550a8c09e (diff) | |
download | serd-6cba665d30cca6f1a0df3b46071e50efdb928192.tar.gz serd-6cba665d30cca6f1a0df3b46071e50efdb928192.tar.bz2 serd-6cba665d30cca6f1a0df3b46071e50efdb928192.zip |
Cleanup: Remove redundant cast
Diffstat (limited to 'tests/serd_test.c')
-rw-r--r-- | tests/serd_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c index b2d862a1..696866fc 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -211,7 +211,7 @@ test_double_to_node(void) for (unsigned i = 0; i < sizeof(dbl_test_nums) / sizeof(double); ++i) { SerdNode node = serd_node_new_decimal(dbl_test_nums[i], 8); const bool pass = (node.buf && dbl_test_strs[i]) - ? !strcmp((const char*)node.buf, (const char*)dbl_test_strs[i]) + ? !strcmp((const char*)node.buf, dbl_test_strs[i]) : ((const char*)node.buf == dbl_test_strs[i]); assert(pass); const size_t len = node.buf ? strlen((const char*)node.buf) : 0; |