changeset 9766:82fe4db20dec

fix bad FLOAT_TRUNCATE in mx-inlines.cc
author Jaroslav Hajek <highegg@gmail.com>
date Mon, 02 Nov 2009 07:16:30 +0100
parents 7fc1c8c47b86
children 0df32e0b2074
files liboctave/ChangeLog liboctave/mx-inlines.cc
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog
+++ b/liboctave/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-02  Jaroslav Hajek  <highegg@gmail.com>
+
+	* mx-inlines.cc (twosum_accum): Remove FLOAT_TRUNCATE.
+
 2009-10-28  John W. Eaton  <jwe@octave.org>
 
 	* PermMatrix.cc: Don't include error.h.
--- a/liboctave/mx-inlines.cc
+++ b/liboctave/mx-inlines.cc
@@ -1249,7 +1249,7 @@
 inline void twosum_accum (T& s, T& e, 
                           const T& x)
 {
-  FLOAT_TRUNCATE T s1 = s + x, t = s1 - s, e1 = (s - (s1 - t)) + (x - t);
+  T s1 = s + x, t = s1 - s, e1 = (s - (s1 - t)) + (x - t);
   s = s1;
   e += e1;
 }