simon-git: spigot (main): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sun Jun 5 14:13:55 BST 2022
TL;DR:
eb585f8 CfracFile: turn early-EOF internal fault into a sensible error.
Repository: https://git.tartarus.org/simon/spigot.git
On the web: https://git.tartarus.org/?p=simon/spigot.git
Branch updated: main
Committer: Simon Tatham <anakin at pobox.com>
Date: 2022-06-05 14:13:55
commit eb585f8dee72a190cdd20fb08cd94ad997ff1b47
web diff https://git.tartarus.org/?p=simon/spigot.git;a=commitdiff;h=eb585f8dee72a190cdd20fb08cd94ad997ff1b47;hp=4b9cde00aaaf2f9dd648d5994ad1544bd3440951
Author: Simon Tatham <anakin at pobox.com>
Date: Sun Jun 5 14:07:48 2022 +0100
CfracFile: turn early-EOF internal fault into a sensible error.
I just happened to notice that if you ask spigot to evaluate an
expression based on 'cfracstdin' and give it no input continued
fraction terms at all, you get an internal fault:
$ spigot -c -d20 'cfracstdin^2' < /dev/null
INTERNAL FAULT: [D#6] iterate_to_bounds got infinite lower bound
It genuinely is illegal to provide a continued fraction with 0 terms,
but that isn't a helpful way to say so. Better error message now
provided.
io.cpp | 7 +++++++
1 file changed, 7 insertions(+)
More information about the tartarus-commits
mailing list