summaryrefslogtreecommitdiff
path: root/jpwl/jpwl_lib.c
diff options
context:
space:
mode:
authorGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-02-23 01:23:05 +0000
committerGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-02-23 01:23:05 +0000
commit8a75823eeaa6f36c428a848d757e7d94ce4386f1 (patch)
tree35cbd0c3181e404833790c0c1e04c0879d868bad /jpwl/jpwl_lib.c
parente841b13166218ba152595a7c0adf5b70c4e5558d (diff)
Fixed a copy-and-paste type assignment error (bool instead of int) in the JPWL section of decoder parameters structure in openjpeg.h; minor type-casting in jpwl_lib.c. As a result, now OPJViewer should run correctly when built against the most current SVN trunk of LibOpenJPEG.lib
Diffstat (limited to 'jpwl/jpwl_lib.c')
-rw-r--r--jpwl/jpwl_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jpwl/jpwl_lib.c b/jpwl/jpwl_lib.c
index 656ca7e5..96e6f69d 100644
--- a/jpwl/jpwl_lib.c
+++ b/jpwl/jpwl_lib.c
@@ -1483,7 +1483,7 @@ bool jpwl_esd_fill(opj_j2k_t *j2k, jpwl_esd_ms_t *esd, unsigned char *buf) {
else
/* packet: first is most important, and then in decreasing order
down to the last, which counts for 1 */
- dvalue = jpwl_pfp_to_double(j2k->image_info->num - thispacket, esd->se_size);
+ dvalue = jpwl_pfp_to_double((unsigned short) (j2k->image_info->num - thispacket), esd->se_size);
break;
/* MSE */