aboutsummaryrefslogtreecommitdiffstats
path: root/src/serd_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/serd_internal.h')
-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;