From: Eric Biggers Date: Thu, 2 Jan 2014 16:15:54 +0000 (-0600) Subject: lz_optimal.h: Fix typedefs X-Git-Tag: v1.6.0~15 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=64088b1109cc594779f8fe2e243ab41fda683158 lz_optimal.h: Fix typedefs --- 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() -