aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/jpeg-6b/jdhuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/monniaux/jpeg-6b/jdhuff.c')
-rw-r--r--test/monniaux/jpeg-6b/jdhuff.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/monniaux/jpeg-6b/jdhuff.c b/test/monniaux/jpeg-6b/jdhuff.c
index d04919c9..41dab479 100644
--- a/test/monniaux/jpeg-6b/jdhuff.c
+++ b/test/monniaux/jpeg-6b/jdhuff.c
@@ -641,10 +641,8 @@ jinit_huff_decoder (j_decompress_ptr cinfo)
(*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
SIZEOF(huff_entropy_decoder));
cinfo->entropy = (struct jpeg_entropy_decoder *) entropy;
-#ifdef DMONNIAUX_MEMCPY
- entropy->pub.start_pass = start_pass_huff_decoder;
- entropy->pub.decode_mcu = decode_mcu;
-#endif
+ ASSIGN_FUNPTR(entropy->pub.start_pass, start_pass_huff_decoder);
+ ASSIGN_FUNPTR(entropy->pub.decode_mcu, decode_mcu);
/* Mark tables unallocated */
for (i = 0; i < NUM_HUFF_TBLS; i++) {