about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-09-30 14:20:12 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-09-30 14:20:12 +0000
commit789a373c953d99d93b16e4568e96face686d59fd (patch)
tree144b23dcff205e1c6b4e8a54c6fe02b90e5078f8
parent86001c83d1f9e61d7ba4c1d4265fe346e48857ad (diff)
downloadnetpbm-mirror-789a373c953d99d93b16e4568e96face686d59fd.tar.gz
netpbm-mirror-789a373c953d99d93b16e4568e96face686d59fd.tar.xz
netpbm-mirror-789a373c953d99d93b16e4568e96face686d59fd.zip
Fix bug
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1324 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--doc/HISTORY3
-rw-r--r--lib/util/floatcode.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/doc/HISTORY b/doc/HISTORY
index ac6c9f13..6096041f 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -12,6 +12,9 @@ Not yet  BJH  Release 10.53.00
               pamstereogram: slight change to dpi and eye separation defaults.
               invert near/far dark/light association.  Thanks Scott Pakin.
 
+              pm_floatFromBigendFloat, pm_doubleFromBigendFloat, fitstopnm:
+              fix corrupted output.  Broken in 10.46.
+
               pamtopdbimg: fix corrupted output image.  Thanks Scott Pakin.
 
               pdbimgtopam: fix corrupted output image.  Thanks Scott Pakin.
diff --git a/lib/util/floatcode.h b/lib/util/floatcode.h
index 8559ff79..6079c142 100644
--- a/lib/util/floatcode.h
+++ b/lib/util/floatcode.h
@@ -25,7 +25,7 @@ typedef struct {
 static __inline__ float
 pm_floatFromBigendFloat(pm_bigendFloat const arg) {
 
-    uint32_t retval;
+    float retval;
 
     switch (pm_byteOrder) {
     case BIG_ENDIAN: {
@@ -109,7 +109,7 @@ typedef struct {
 static __inline__ double
 pm_doubleFromBigendDouble(pm_bigendDouble const arg) {
 
-    uint32_t retval;
+    double retval;
 
     switch (pm_byteOrder) {
     case BIG_ENDIAN: {