1
0
Fork 0

[F] Fixed compiler warning

This commit is contained in:
seleznevae 2018-09-01 15:51:19 +03:00
parent 3b36d46d29
commit f28ae825b2
2 changed files with 4 additions and 0 deletions

View File

@ -2885,11 +2885,13 @@ static ptrdiff_t str_iter_width(const char *beg, const char *end)
}
#ifdef FT_HAVE_WCHAR
static ptrdiff_t wcs_iter_width(const wchar_t *beg, const wchar_t *end)
{
assert(end >= beg);
return mk_wcswidth(beg, (end - beg));
}
#endif /* FT_HAVE_WCHAR */
static size_t buf_str_len(const string_buffer_t *buf)

View File

@ -13,11 +13,13 @@ static ptrdiff_t str_iter_width(const char *beg, const char *end)
}
#ifdef FT_HAVE_WCHAR
static ptrdiff_t wcs_iter_width(const wchar_t *beg, const wchar_t *end)
{
assert(end >= beg);
return mk_wcswidth(beg, (end - beg));
}
#endif /* FT_HAVE_WCHAR */
static size_t buf_str_len(const string_buffer_t *buf)