diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-03-22 10:18:33 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-03-22 10:18:33 -0700 |
commit | 6254e4fa987437b1d785cae66122d707c886e144 (patch) | |
tree | 45ecf360d0748a1f33a18f93d6dde199cde4b497 /ChangeLog | |
parent | d4a331511ffa45f41a0a619649e366905e406037 (diff) | |
download | txr-6254e4fa987437b1d785cae66122d707c886e144.tar.gz txr-6254e4fa987437b1d785cae66122d707c886e144.tar.bz2 txr-6254e4fa987437b1d785cae66122d707c886e144.zip |
* arith.c (int_flo): If sprintf produces something
that doesn't begin with a digit, it's most likely NaN or Inf.
We can turn that into an exception.
* stream.c (vformat): If sprintf produces a non-number,
turn it into the printed representation #<bad-float>.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,14 @@ 2012-03-22 Kaz Kylheku <kaz@kylheku.com> + * arith.c (int_flo): If sprintf produces something + that doesn't begin with a digit, it's most likely NaN or Inf. + We can turn that into an exception. + + * stream.c (vformat): If sprintf produces a non-number, + turn it into the printed representation #<bad-float>. + +2012-03-22 Kaz Kylheku <kaz@kylheku.com> + * arith.c (to_float): New static function. (divi): Uses to_float. (zerop, gt, lt, ge, le, expt): Floating support. |