aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/jpeg-6b/jcmaster.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/monniaux/jpeg-6b/jcmaster.c')
-rw-r--r--test/monniaux/jpeg-6b/jcmaster.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/monniaux/jpeg-6b/jcmaster.c b/test/monniaux/jpeg-6b/jcmaster.c
index 0f206557..aab4020b 100644
--- a/test/monniaux/jpeg-6b/jcmaster.c
+++ b/test/monniaux/jpeg-6b/jcmaster.c
@@ -330,7 +330,7 @@ per_scan_setup (j_compress_ptr cinfo)
/* For noninterleaved scans, it is convenient to define last_row_height
* as the number of block rows present in the last iMCU row.
*/
- tmp = (int) INT_UMOD(compptr->height_in_blocks, compptr->v_samp_factor);
+ tmp = (int) (compptr->height_in_blocks % compptr->v_samp_factor);
if (tmp == 0) tmp = compptr->v_samp_factor;
compptr->last_row_height = tmp;
@@ -363,10 +363,10 @@ per_scan_setup (j_compress_ptr cinfo)
compptr->MCU_blocks = compptr->MCU_width * compptr->MCU_height;
compptr->MCU_sample_width = compptr->MCU_width * DCTSIZE;
/* Figure number of non-dummy blocks in last MCU column & row */
- tmp = (int) INT_UMOD(compptr->width_in_blocks, compptr->MCU_width);
+ tmp = (int) (compptr->width_in_blocks % compptr->MCU_width);
if (tmp == 0) tmp = compptr->MCU_width;
compptr->last_col_width = tmp;
- tmp = (int) INT_UMOD(compptr->height_in_blocks, compptr->MCU_height);
+ tmp = (int) (compptr->height_in_blocks % compptr->MCU_height);
if (tmp == 0) tmp = compptr->MCU_height;
compptr->last_row_height = tmp;
/* Prepare array describing MCU composition */