about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--analyzer/pamgetcolor.c5
-rw-r--r--doc/HISTORY5
-rw-r--r--version.mk2
3 files changed, 9 insertions, 3 deletions
diff --git a/analyzer/pamgetcolor.c b/analyzer/pamgetcolor.c
index 23396967..993dd79d 100644
--- a/analyzer/pamgetcolor.c
+++ b/analyzer/pamgetcolor.c
@@ -370,12 +370,13 @@ processRow(tuple *      const   row,
     for (r = 0; r < cmdLineP->regN; r++) {
         RegSpec   spec;
         RegData * dataP;
-        uint      yd, xd, xd2;
+        uint      xd, xd2;
+        int       yd;
         int       x0, x1;
 
         spec  = cmdLineP->regSpecs[r];
         dataP = &regSamples[r];
-        yd    = spec.y - y;
+        yd    = (int)spec.y - (int)y;
         if (abs(yd) > cmdLineP->radius)
             continue; /* to avoid the slow root operation when possible */
         xd2 = sqri(cmdLineP->radius) - sqri(yd);
diff --git a/doc/HISTORY b/doc/HISTORY
index 0b428c4a..cf618983 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -4,6 +4,11 @@ Netpbm.
 CHANGE HISTORY 
 --------------
 
+18.09.08 BJH  Release 10.83.02
+
+              pamgetcolor: fix bug: gets color of only the top half of a
+              region.
+
 18.07.07 BJH  Release 10.83.01
 
               pbmtext; libnetpbm BDF font processing: fix invalid memory
diff --git a/version.mk b/version.mk
index 7275fd3f..abafa08b 100644
--- a/version.mk
+++ b/version.mk
@@ -1,3 +1,3 @@
 NETPBM_MAJOR_RELEASE = 10
 NETPBM_MINOR_RELEASE = 83
-NETPBM_POINT_RELEASE = 1
+NETPBM_POINT_RELEASE = 2