aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-16 22:46:17 +0200
committerDavid Robillard <d@drobilla.net>2018-09-16 22:49:42 +0200
commit443d0288884e27024f899bbef5d5612c0f314e04 (patch)
treef923784aa500534d8e1e87b8b1286978e10ec468
parente7f9b51da8597dc70a432b4272429188e4ce69e1 (diff)
downloadserd-443d0288884e27024f899bbef5d5612c0f314e04.tar.gz
serd-443d0288884e27024f899bbef5d5612c0f314e04.tar.bz2
serd-443d0288884e27024f899bbef5d5612c0f314e04.zip
Fix const casts
-rw-r--r--src/serd_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serd_internal.h b/src/serd_internal.h
index fecd2b6a..47b1ab98 100644
--- a/src/serd_internal.h
+++ b/src/serd_internal.h
@@ -393,7 +393,7 @@ serd_strncasecmp(const char* s1, const char* s2, size_t n)
{
for (; n > 0 && *s2; s1++, s2++, --n) {
if (toupper(*s1) != toupper(*s2)) {
- return ((*(uint8_t*)s1 < *(uint8_t*)s2) ? -1 : +1);
+ return ((*(const uint8_t*)s1 < *(const uint8_t*)s2) ? -1 : +1);
}
}
return 0;