diff options
author | David Robillard <d@drobilla.net> | 2012-03-08 19:23:55 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-08 19:23:55 +0000 |
commit | 8c2b149cb21164028feefa1574238927aac1b0b9 (patch) | |
tree | 7c94401ed50fbeb9d7eb5ad076303844cacadc75 /src/reader.c | |
parent | 44177f8c18af89540b90a1cfa38ddda84fc6f747 (diff) | |
download | serd-8c2b149cb21164028feefa1574238927aac1b0b9.tar.gz serd-8c2b149cb21164028feefa1574238927aac1b0b9.tar.bz2 serd-8c2b149cb21164028feefa1574238927aac1b0b9.zip |
Fix compilation in VC++.
git-svn-id: http://svn.drobilla.net/serd/trunk@334 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/reader.c')
-rw-r--r-- | src/reader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reader.c b/src/reader.c index 333aabde..7e9bb3d4 100644 --- a/src/reader.c +++ b/src/reader.c @@ -992,13 +992,13 @@ static bool read_blank(SerdReader* reader, ReadContext ctx, bool subject, Ref* dest) { const SerdStatementFlags old_flags = *ctx.flags; + bool empty; switch (peek_byte(reader)) { case '_': return (*dest = read_nodeID(reader)); case '[': eat_byte_safe(reader, '['); - const bool empty = peek_delim(reader, ']'); - if (empty) { + if ((empty = peek_delim(reader, ']'))) { *ctx.flags |= (subject) ? SERD_EMPTY_S : SERD_EMPTY_O; } else { *ctx.flags |= (subject) ? SERD_ANON_S_BEGIN : SERD_ANON_O_BEGIN; |