aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/jpeg-6b/jdhuff.c
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-01-29 22:00:49 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-01-29 22:00:49 +0100
commit15aafbb6ff578e10bfc9348c0d04aeaf83279705 (patch)
tree49cd839c4a28923feb16b8ffd278aab0d283e297 /test/monniaux/jpeg-6b/jdhuff.c
parentc92fb6bebc781525e09bd38cb77f746c3b8d118c (diff)
downloadcompcert-kvx-15aafbb6ff578e10bfc9348c0d04aeaf83279705.tar.gz
compcert-kvx-15aafbb6ff578e10bfc9348c0d04aeaf83279705.zip
muf muf muf
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++) {