]> www.ginac.de Git - ginac.git/commit
Any complex number can be (un)archived properly.
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Wed, 30 Jul 2008 16:32:46 +0000 (20:32 +0400)
committerRichard B. Kreckel <kreckel@ginac.de>
Sun, 17 Aug 2008 20:08:08 +0000 (22:08 +0200)
commite6caa2040557bdaaf2262afc0bb47dddd88e38cd
tree5cf6258820dcfa167d77e20f93c5c3fbdd831361
parent1043ee1e38b7a70e737870e6b87f07607c0e9639
Any complex number can be (un)archived properly.

A complex number can have an exact real part and inexact (floating point)
imaginary part, and vice a versa. Handle these cases properly in the archiving
code instead of bailing out with a bizzare error message.

Thanks to Chris Bouchard for reporting the bug.

NOTE: this fix changes the format of GiNaC archives, so formally it breaks
the binary compatibility. However, "mixed" complex numbers (i.e.  ones with
exact real part and inexact imaginary part) can not be archived with previous
versions of GiNaC, so there's nothing to break.
check/Makefile.am
check/numeric_archive.cpp [new file with mode: 0644]
configure.ac
ginac/numeric.cpp