mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #3150 from janisozaur/develop
Silence compiler warning
This commit is contained in:
commit
3699c42c61
|
@ -216,7 +216,7 @@ utf8 * safe_strtrunc(utf8 * text, size_t size)
|
||||||
char *ch = text;
|
char *ch = text;
|
||||||
char *last = text;
|
char *last = text;
|
||||||
uint32 codepoint;
|
uint32 codepoint;
|
||||||
while ((codepoint = utf8_get_next(ch, &ch)) != 0) {
|
while ((codepoint = utf8_get_next(ch, (const utf8 **)&ch)) != 0) {
|
||||||
if (ch <= sourceLimit) {
|
if (ch <= sourceLimit) {
|
||||||
last = ch;
|
last = ch;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue