diff --git a/src/rtext.c b/src/rtext.c index d8d290053..982402f54 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -1915,7 +1915,7 @@ void UnloadCodepoints(int *codepoints) int GetCodepointCount(const char *text) { unsigned int length = 0; - char *ptr = (char *)&text[0]; + const char *ptr = text; while (*ptr != '\0') {