about summary refs log tree commit diff
diff options
context:
space:
mode:
-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: {