- Missing casting, even when that function is deprecated.

This commit is contained in:
drfrag 2019-05-15 19:13:01 +02:00
parent 1186bccca0
commit fcdc296ec7

View file

@ -164,7 +164,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(FStringStruct, CharAt, StringCharAt)
static int StringCharCodeAt(FString *self, int pos) static int StringCharCodeAt(FString *self, int pos)
{ {
if ((unsigned)pos >= self->Len()) return 0; if ((unsigned)pos >= self->Len()) return 0;
else return (*self)[pos]; else return (uint8_t)((*self)[pos]);
} }
DEFINE_ACTION_FUNCTION_NATIVE(FStringStruct, CharCodeAt, StringCharCodeAt) DEFINE_ACTION_FUNCTION_NATIVE(FStringStruct, CharCodeAt, StringCharCodeAt)