gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] help fixing edit_double, failure to print 1d-6 for gcl-2


From: Camm Maguire
Subject: Re: [Gcl-devel] help fixing edit_double, failure to print 1d-6 for gcl-2.6.8
Date: Tue, 08 Oct 2013 08:41:15 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Greetings!  I think this should do it:

--- /home/camm/debian/gcl/gclttt/o/print.d      2013-01-15 19:44:49.000000000 
+0000
+++ print.d     2013-09-28 14:53:26.000000000 +0000
@@ -388,6 +390,10 @@
 
   truncate_double(b,d,n!=7);
 
+  if (isdigit(b[0])) {
+    b[1]=b[0];
+    (*ep)++;
+  }
   if (b[2]=='0') (*ep)++;
   b[2] = b[1];
   p = b + 2;

Please let me know if problems persist.

BTW, can you field a few mingw questions?

Take care,

David Billinghurst <address@hidden> writes:

> The current maxima 5.31.2 release for windows is built with cvs
> gcl-2.6.8pre from 2013-01-01.  The previous release used gcl-2.6.8,
> but this has a bug where 1e-6 is printed as 0.0.
>
> I tried backporting Camm's patch to 2.6.20pre
> http://git.savannah.gnu.org/cgit/gcl.git/commit/?h=Version_2_6_10pre&id=b25201deb6e0303e92adb105a610f367745032d4
> but the resulting maxima has many testsuite failures.
>
> I have identified the patch to 2.6.8pre that introduced the bug
> http://cvs.savannah.gnu.org/viewvc/gcl/o/print.d?root=gcl&r1=1.15.4.1.2.2.12.1.2.1.2.1&r2=1.15.4.1.2.2.12.1.2.1.2.2&pathrev=Version_2_6_8pre
>
> I would like to fix 2.6.8 and get a 2.6.8-1 (or whatever) release so
> that maxima is can again be built with a released version of gcl.
> Unfortunately is isn't immediately obvious to me what the fix is.  I
> can probably work it out, but it is easier to ask :-).
>
> David
>
>
>
>
>

-- 
Camm Maguire                                        address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah



reply via email to

[Prev in Thread] Current Thread [Next in Thread]