diff options
author | David Robillard <d@drobilla.net> | 2021-07-24 21:08:10 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:07 -0500 |
commit | 6f87e81df367d93f327cebbc6e848ffd09742761 (patch) | |
tree | a7343cb271a1caeebae31a73f50bcdecb2854414 /src/n3.c | |
parent | 2d43bf2b5c301ca1e4766b5048650ca1e29e38c0 (diff) | |
download | serd-6f87e81df367d93f327cebbc6e848ffd09742761.tar.gz serd-6f87e81df367d93f327cebbc6e848ffd09742761.tar.bz2 serd-6f87e81df367d93f327cebbc6e848ffd09742761.zip |
Be precise about the meaning of node "length" and "size"
Diffstat (limited to 'src/n3.c')
-rw-r--r-- | src/n3.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1331,7 +1331,8 @@ read_collection(SerdReader* const reader, /* The order of node allocation here is necessarily not in stack order, so we create two nodes and recycle them throughout. */ SerdNode* n1 = - push_node_padded(reader, genid_size(reader), SERD_BLANK, "", 0); + push_node_padded(reader, genid_length(reader), SERD_BLANK, "", 0); + SerdNode* node = n1; SerdNode* rest = 0; @@ -1355,7 +1356,7 @@ read_collection(SerdReader* const reader, rest = blank_id(reader); // First pass, push assert(rest); // Can't overflow since read_object() popped } else { - set_blank_id(reader, rest, genid_size(reader)); + set_blank_id(reader, rest, genid_length(reader) + 1); } } |