Read complex numbers where both parts are inexact decimals
authorNeil Jerram <neil@ossau.uklinux.net>
Wed, 1 Jul 2009 00:39:24 +0000 (01:39 +0100)
committerNeil Jerram <neil@ossau.uklinux.net>
Wed, 1 Jul 2009 18:43:55 +0000 (19:43 +0100)
commit40f892156acba9cac990d2a53333fc41cefcd507
tree53e828537519985f222212cb1ca009573680b114
parentdd57ddd5ede6d3d9a736b2b48455fbd87da51e3a
Read complex numbers where both parts are inexact decimals

Thanks to Bill Schottstaedt for reporting this problem!

* libguile/numbers.c (mem2ureal): Don't be misled by *p_exactness
  being INEXACT on entry (as is possible when reading a complex
  number): use local exactness variable x which starts as EXACT.
  Call mem2decimal_from_point () with &x instead of p_exactness.

* test-suite/tests/numbers.test ("string->number"): Add complex number
  tests suggested by Bill.
NEWS
libguile/numbers.c
test-suite/tests/numbers.test