aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
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
}