From 22fb38fec45cfa0daa56afaf6297ed5917d38b5e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 19 Oct 2019 11:56:18 +0200 Subject: Fix spurious semicolons --- src/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.c b/src/string.c index b867fc76..36e23007 100644 --- a/src/string.c +++ b/src/string.c @@ -323,7 +323,7 @@ compare_buffer(const char* buf, const int expt, const SerdSoftFloat upper) double serd_strtod(const char* const str, size_t* const end) { -#define SET_END(index) if (end) { *end = (size_t)(index); } +#define SET_END(index) do { if (end) { *end = (size_t)(index); } } while (0) static const int n_exact_pow10 = sizeof(POW10) / sizeof(POW10[0]); static const int max_exact_int_digits = 15; // Digits that fit exactly -- cgit v1.2.1