diff options
author | David Robillard <d@drobilla.net> | 2019-10-19 11:56:18 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:12:04 +0200 |
commit | 22fb38fec45cfa0daa56afaf6297ed5917d38b5e (patch) | |
tree | 081d1d4d2e9afd0c7035dca54507d0cc8009adff | |
parent | f8dd7c7aff55f3d2e344097d56a35a78c72e7913 (diff) | |
download | serd-22fb38fec45cfa0daa56afaf6297ed5917d38b5e.tar.gz serd-22fb38fec45cfa0daa56afaf6297ed5917d38b5e.tar.bz2 serd-22fb38fec45cfa0daa56afaf6297ed5917d38b5e.zip |
Fix spurious semicolons
-rw-r--r-- | src/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |