From 64088b1109cc594779f8fe2e243ab41fda683158 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 2 Jan 2014 10:15:54 -0600 Subject: [PATCH] lz_optimal.h: Fix typedefs --- include/wimlib/lz_optimal.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/wimlib/lz_optimal.h b/include/wimlib/lz_optimal.h index 3a07df5d..00d3b6a4 100644 --- a/include/wimlib/lz_optimal.h +++ b/include/wimlib/lz_optimal.h @@ -237,16 +237,16 @@ typedef void (*lz_skip_bytes_t)(LZ_COMPRESSOR *ctx, input_idx_t n); * most recently been searched. This can optionally update the @state to take * into account format-dependent state that affects match costs, such as repeat * offsets. */ -typedef lz_mc_cost_t (lz_get_prev_literal_cost_t)(LZ_COMPRESSOR *ctx, - LZ_ADAPTIVE_STATE *state); +typedef lz_mc_cost_t (*lz_get_prev_literal_cost_t)(LZ_COMPRESSOR *ctx, + LZ_ADAPTIVE_STATE *state); /* Get the cost of a match. This can optionally update the @state to take into * account format-dependent state that affects match costs, such as repeat * offsets. */ -typedef lz_mc_cost_t (lz_get_match_cost_t)(LZ_COMPRESSOR *ctx, - LZ_ADAPTIVE_STATE *state, - input_idx_t length, - input_idx_t offset); +typedef lz_mc_cost_t (*lz_get_match_cost_t)(LZ_COMPRESSOR *ctx, + LZ_ADAPTIVE_STATE *state, + input_idx_t length, + input_idx_t offset); /* * lz_get_near_optimal_match() - -- 2.43.0