mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Silence compiler warning
Though this really should be taken care of properly, see https://stackoverflow.com/questions/14562845/why-does-passing-char-as-const-char-generate-a-warning
This commit is contained in:
@@ -216,7 +216,7 @@ utf8 * safe_strtrunc(utf8 * text, size_t size)
|
||||
char *ch = text;
|
||||
char *last = text;
|
||||
uint32 codepoint;
|
||||
while ((codepoint = utf8_get_next(ch, &ch)) != 0) {
|
||||
while ((codepoint = utf8_get_next(ch, (const utf8 **)&ch)) != 0) {
|
||||
if (ch <= sourceLimit) {
|
||||
last = ch;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user