aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-01-06 14:45:21 -0500
committerDavid Robillard <d@drobilla.net>2017-01-06 18:12:13 -0500
commit52590dbeb23100320417d6f72e20fadf215479e5 (patch)
tree8ec4edc72ee9beca1ed29531d6c9bbb90b6b8b7f /src/writer.c
parent5591d2367d540ffe202ebc71ffcc6ced47ea6962 (diff)
downloadserd-52590dbeb23100320417d6f72e20fadf215479e5.tar.gz
serd-52590dbeb23100320417d6f72e20fadf215479e5.tar.bz2
serd-52590dbeb23100320417d6f72e20fadf215479e5.zip
Tidy
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/writer.c b/src/writer.c
index 59c05420..ce13d79b 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -252,7 +252,7 @@ write_uri(SerdWriter* writer, const uint8_t* utf8, size_t n_bytes)
// Bulk write all characters up to this special one
len += sink(&utf8[i], j - i, writer);
- if ((i = j) == n_bytes) {
+ if ((i = j) == n_bytes) {
break; // Reached end
}
@@ -299,7 +299,7 @@ write_lname(SerdWriter* writer, const uint8_t* utf8, size_t n_bytes)
// Bulk write all characters up to this special one
len += sink(&utf8[i], j - i, writer);
- if ((i = j) == n_bytes) {
+ if ((i = j) == n_bytes) {
break; // Reached end
}