about summary refs log tree commit diff
path: root/analyzer
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2012-01-14 03:02:32 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2012-01-14 03:02:32 +0000
commitf1fd8f35257f39e1681d68d7d2dc381ef58643c3 (patch)
tree5a96102453c3ac8141714f13595eee42570ad763 /analyzer
parent8fc48001c51dda6dea811bafe51d327786a6dca6 (diff)
downloadnetpbm-mirror-f1fd8f35257f39e1681d68d7d2dc381ef58643c3.tar.gz
netpbm-mirror-f1fd8f35257f39e1681d68d7d2dc381ef58643c3.tar.xz
netpbm-mirror-f1fd8f35257f39e1681d68d7d2dc381ef58643c3.zip
Release 10.47.35
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@1629 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'analyzer')
-rw-r--r--analyzer/pgmtexture.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/analyzer/pgmtexture.c b/analyzer/pgmtexture.c
index 9fb80950..6a9f5a4f 100644
--- a/analyzer/pgmtexture.c
+++ b/analyzer/pgmtexture.c
@@ -542,7 +542,7 @@ f5_idm (float **P, int Ng)
 }
 
 static float 
-Pxpy[2 * PGM_MAXMAXVAL];
+Pxpy[2 * (PGM_MAXMAXVAL+1) + 1];
 
 static float 
 f6_savg (float **P, int Ng)
@@ -627,8 +627,9 @@ f10_dvar (float **P, int Ng)
 
 /* Difference Variance */
 {
-    int i, j, tmp;
-    float sum = 0, sum_sqr = 0, var = 0;
+    int i, j;
+    double tmp;
+    double sum = 0, sum_sqr = 0, var = 0;
 
     for (i = 0; i <= 2 * Ng; ++i)
         Pxpy[i] = 0;