1
0
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:
Michał Janiszewski
2016-03-19 12:56:35 +01:00
parent cb9a4860f3
commit 843014eac2

View File

@@ -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 {