From 1ec2c1e8ed527e6d164e4a5f053d140f29189a1b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 15 Apr 2021 18:26:07 -0400 Subject: Remove redundant cast --- src/writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/writer.c') 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); } } -- cgit v1.2.1