[F] Fixed compilation error

This commit is contained in:
seleznevae 2019-08-27 09:29:24 +03:00
parent 8dd850571e
commit 00d8dadfd6
2 changed files with 2 additions and 2 deletions

View File

@ -5576,7 +5576,7 @@ fort_row_t *create_row_from_buffer(const string_buffer_t *buffer)
#endif /* FT_HAVE_WCHAR */ #endif /* FT_HAVE_WCHAR */
#ifdef FT_HAVE_UTF8 #ifdef FT_HAVE_UTF8
case UTF8_BUF: case UTF8_BUF:
return create_row_from_string(buffer->str.u8str); return create_row_from_string((const char *)buffer->str.u8str);
#endif /* FT_HAVE_UTF8 */ #endif /* FT_HAVE_UTF8 */
default: default:
assert(0); assert(0);

View File

@ -596,7 +596,7 @@ fort_row_t *create_row_from_buffer(const string_buffer_t *buffer)
#endif /* FT_HAVE_WCHAR */ #endif /* FT_HAVE_WCHAR */
#ifdef FT_HAVE_UTF8 #ifdef FT_HAVE_UTF8
case UTF8_BUF: case UTF8_BUF:
return create_row_from_string(buffer->str.u8str); return create_row_from_string((const char *)buffer->str.u8str);
#endif /* FT_HAVE_UTF8 */ #endif /* FT_HAVE_UTF8 */
default: default:
assert(0); assert(0);