summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-cmap.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-02-22 14:29:14 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-02-22 14:31:17 +0100
commitbbc4678dd53e3742b5ce7f96aba03038215bbbc4 (patch)
tree645502a5ac7388bb3ee873288aad3942216dbf01 /source/pdf/pdf-cmap.c
parent2af96d78c56c9cc81176c732563a5a4338012a0b (diff)
downloadmupdf-bbc4678dd53e3742b5ce7f96aba03038215bbbc4.tar.xz
Remove pointless casts from void*.
Extraneous explicit type casts can mask errors, especially if a function prototype or return value changes in the future.
Diffstat (limited to 'source/pdf/pdf-cmap.c')
-rw-r--r--source/pdf/pdf-cmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-cmap.c b/source/pdf/pdf-cmap.c
index 16167439..14652c8a 100644
--- a/source/pdf/pdf-cmap.c
+++ b/source/pdf/pdf-cmap.c
@@ -28,7 +28,7 @@ pdf_new_cmap(fz_context *ctx)
pdf_cmap *
pdf_keep_cmap(fz_context *ctx, pdf_cmap *cmap)
{
- return (pdf_cmap *)fz_keep_storable(ctx, &cmap->storable);
+ return fz_keep_storable(ctx, &cmap->storable);
}
/* Could be a macro for speed */