summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-02-16 16:56:09 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-02-16 16:56:09 -0500
commitbf098068e7f821eac968d704b0d6592278c56ae3 (patch)
tree3a9ddecbe4c5a8de53de8c5f6d1739c15be9a42a
parent8093bbd11a5a50b2232278391dba6791481c3000 (diff)
downloadselphy_print-bf098068e7f821eac968d704b0d6592278c56ae3.tar.gz
selphy_print-bf098068e7f821eac968d704b0d6592278c56ae3.tar.bz2
selphy_print-bf098068e7f821eac968d704b0d6592278c56ae3.zip
lib70x: Fix a logic error introduced by unsigned integer underflow
-rw-r--r--lib70x/libMitsuD70ImageReProcess.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib70x/libMitsuD70ImageReProcess.c b/lib70x/libMitsuD70ImageReProcess.c
index 6a43136..4d01efa 100644
--- a/lib70x/libMitsuD70ImageReProcess.c
+++ b/lib70x/libMitsuD70ImageReProcess.c
@@ -52,7 +52,7 @@
*/
-#define LIB_VERSION "0.8.3"
+#define LIB_VERSION "0.8.4"
#include <stdio.h>
#include <stdint.h>
@@ -785,7 +785,7 @@ static void CImageEffect70_CalcFCC(struct CImageEffect70 *data)
static void CImageEffect70_CalcHTD(struct CImageEffect70 *data, const double *in, double *out)
{
- uint32_t cur_row, offset;
+ int32_t cur_row, offset;
double *hk;
double *last, *first;
unsigned int i, k;