From 789a373c953d99d93b16e4568e96face686d59fd Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 30 Sep 2010 14:20:12 +0000 Subject: Fix bug git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1324 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- doc/HISTORY | 3 +++ lib/util/floatcode.h | 4 ++-- 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: { -- cgit 1.4.1