diff --git a/src/rtext.c b/src/rtext.c index d8d29005..982402f5 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') {