aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/jpeg-6b/jdphuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/monniaux/jpeg-6b/jdphuff.c')
-rw-r--r--test/monniaux/jpeg-6b/jdphuff.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/monniaux/jpeg-6b/jdphuff.c b/test/monniaux/jpeg-6b/jdphuff.c
index 65c196b3..1750bdd0 100644
--- a/test/monniaux/jpeg-6b/jdphuff.c
+++ b/test/monniaux/jpeg-6b/jdphuff.c
@@ -648,9 +648,8 @@ jinit_phuff_decoder (j_decompress_ptr cinfo)
(*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
SIZEOF(phuff_entropy_decoder));
cinfo->entropy = (struct jpeg_entropy_decoder *) entropy;
-#ifdef DMONNIAUX_MEMCPY
- entropy->pub.start_pass = start_pass_phuff_decoder;
-#endif
+ ASSIGN_FUNPTR(entropy->pub.start_pass, start_pass_phuff_decoder);
+
/* Mark derived tables unallocated */
for (i = 0; i < NUM_HUFF_TBLS; i++) {
entropy->derived_tbls[i] = NULL;