mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-03-28 14:30:41 +01:00
test/bitmap-font: Fix arguments to FcFreeTypeQuery to avoid warnings.
(cherry picked from 416e94532b commit)
This commit is contained in:
parent
baca4a50ac
commit
48e0509f93
1 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ draw (cairo_t *cr, int width, int height)
|
|||
cairo_status_t status;
|
||||
const char *srcdir = getenv ("srcdir");
|
||||
char *filename;
|
||||
int *face_count;
|
||||
int face_count;
|
||||
struct stat stat_buf;
|
||||
|
||||
if (! srcdir)
|
||||
|
|
@ -66,7 +66,7 @@ draw (cairo_t *cr, int width, int height)
|
|||
return CAIRO_TEST_FAILURE;
|
||||
}
|
||||
|
||||
pattern = FcFreeTypeQuery (filename, 0, NULL, &face_count);
|
||||
pattern = FcFreeTypeQuery ((unsigned char *)filename, 0, NULL, &face_count);
|
||||
free (filename);
|
||||
if (! pattern) {
|
||||
cairo_test_log ("FcFreeTypeQuery failed.\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue