aboutsummaryrefslogtreecommitdiffstats
path: root/tests/serd_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-06-21 17:38:09 +0200
committerDavid Robillard <d@drobilla.net>2020-06-21 18:06:23 +0200
commit6cba665d30cca6f1a0df3b46071e50efdb928192 (patch)
tree2ee07112e2067049d6db6c52e6c10f203cd8b73f /tests/serd_test.c
parent8353731836d8a79265d93792d29b8b4550a8c09e (diff)
downloadserd-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.c2
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;