From bbc4678dd53e3742b5ce7f96aba03038215bbbc4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 22 Feb 2016 14:29:14 +0100 Subject: Remove pointless casts from void*. Extraneous explicit type casts can mask errors, especially if a function prototype or return value changes in the future. --- source/fitz/function.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/fitz/function.c') diff --git a/source/fitz/function.c b/source/fitz/function.c index 75e47a94..138552ac 100644 --- a/source/fitz/function.c +++ b/source/fitz/function.c @@ -33,7 +33,7 @@ fz_eval_function(fz_context *ctx, fz_function *func, const float *in, int inlen, fz_function * fz_keep_function(fz_context *ctx, fz_function *func) { - return (fz_function *)fz_keep_storable(ctx, &func->storable); + return fz_keep_storable(ctx, &func->storable); } void -- cgit v1.2.3