aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-04-15 18:26:07 -0400
committerDavid Robillard <d@drobilla.net>2021-05-16 13:01:28 -0400
commit1ec2c1e8ed527e6d164e4a5f053d140f29189a1b (patch)
treebf38824df741541b39e9b6bd9516188f21ac8d19
parentf6d5bdd20a77190af6e269ba08a371395979065d (diff)
downloadserd-1ec2c1e8ed527e6d164e4a5f053d140f29189a1b.tar.gz
serd-1ec2c1e8ed527e6d164e4a5f053d140f29189a1b.tar.bz2
serd-1ec2c1e8ed527e6d164e4a5f053d140f29189a1b.zip
Remove redundant cast
-rw-r--r--src/writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c
index a265201d..94c03f06 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -257,7 +257,7 @@ write_uri(SerdWriter* writer, const uint8_t* utf8, size_t n_bytes)
// Corrupt input, write percent-encoded bytes and scan to next start
char escape[4] = {0, 0, 0, 0};
for (; i < n_bytes && (utf8[i] & 0x80); ++i) {
- snprintf(escape, sizeof(escape), "%%%02X", (uint8_t)utf8[i]);
+ snprintf(escape, sizeof(escape), "%%%02X", utf8[i]);
len += sink(escape, 3, writer);
}
}