summaryrefslogtreecommitdiff
path: root/libguile/objcodes.c
diff options
context:
space:
mode:
authorNeil Jerram <neil@ossau.uklinux.net>2009-07-01 01:39:24 +0100
committerNeil Jerram <neil@ossau.uklinux.net>2009-07-01 19:43:55 +0100
commit40f892156acba9cac990d2a53333fc41cefcd507 (patch)
tree53e828537519985f222212cb1ca009573680b114 /libguile/objcodes.c
parentdd57ddd5ede6d3d9a736b2b48455fbd87da51e3a (diff)
downloadguile-40f892156acba9cac990d2a53333fc41cefcd507.tar.gz
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.
Diffstat (limited to 'libguile/objcodes.c')
0 files changed, 0 insertions, 0 deletions