From edf1a117c28a799f5f2f276da673e84a6d941b6d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 27 Dec 2018 14:16:12 -0500 Subject: Remove redundant cast --- src/sratom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sratom.c') diff --git a/src/sratom.c b/src/sratom.c index b797954..e101819 100644 --- a/src/sratom.c +++ b/src/sratom.c @@ -332,7 +332,7 @@ sratom_write(Sratom* sratom, uint8_t* str = (uint8_t*)calloc(size * 2 + 1, 1); for (uint32_t i = 0; i < size; ++i) { snprintf((char*)str + (2 * i), size * 2 + 1, "%02X", - (unsigned)(uint8_t)*((const uint8_t*)body + i)); + (unsigned)*((const uint8_t*)body + i)); } object = serd_node_from_string(SERD_LITERAL, USTR(str)); } else if (type_urid == sratom->atom_Event) { -- cgit v1.2.1