summaryrefslogtreecommitdiff
path: root/source/xps/xps-tile.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-04-27 12:43:00 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-04-27 15:12:03 +0200
commitc586d072fd786e66851173f5ddd31241ad28f3e6 (patch)
treed6db1b68dc122f8349513633ae76a73ed353b69b /source/xps/xps-tile.c
parentce680b96e207c90429eb702c5ee4b9bec177fdfd (diff)
downloadmupdf-c586d072fd786e66851173f5ddd31241ad28f3e6.tar.xz
Avoid typecasting function pointers in subclasses.
Do the typecasting in the functions instead, reducing the risk of function prototype mismatches.
Diffstat (limited to 'source/xps/xps-tile.c')
-rw-r--r--source/xps/xps-tile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/xps/xps-tile.c b/source/xps/xps-tile.c
index 53e223ee..e5b3bed7 100644
--- a/source/xps/xps-tile.c
+++ b/source/xps/xps-tile.c
@@ -366,8 +366,9 @@ xps_parse_fixed_page(fz_context *ctx, xps_document *doc, const fz_matrix *ctm, x
}
void
-xps_run_page(fz_context *ctx, xps_page *page, fz_device *dev, const fz_matrix *ctm, fz_cookie *cookie)
+xps_run_page(fz_context *ctx, fz_page *page_, fz_device *dev, const fz_matrix *ctm, fz_cookie *cookie)
{
+ xps_page *page = (xps_page*)page_;
xps_document *doc = page->doc;
fz_matrix page_ctm = *ctm;