simon-git: puzzles (master): Simon Tatham
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Wed Nov 26 21:26:37 GMT 2014
TL;DR:
d7a4c52 Fix a decoding bug in Solo block-structure descriptions.
078d3c0 Remove an inappropriate assertion in validation context.
Repository: git://git.tartarus.org/simon/puzzles.git
On the web: http://tartarus.org/~simon-git/gitweb/?p=puzzles.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2014-11-26 21:26:37
commit d7a4c52937ddacc5c81049f0bfdf916df757277c
web diff http://tartarus.org/~simon-git/gitweb/?p=puzzles.git;a=commitdiff;h=d7a4c52937ddacc5c81049f0bfdf916df757277c;hp=4a8edc65bbe906093787645b98122c7750ae83e8
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Nov 26 19:27:35 2014 +0000
Fix a decoding bug in Solo block-structure descriptions.
Due to a copy-and-paste error, I was accidentally treating 'y' as the
special-case character which puts no 1 bit after the run of 0s, which
should have been 'z'. Game id 9jk#12345-5994 failed an assertion as a
result (because it generates a y which was accidentally treated as
special).
solo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 078d3c0a6d6ace0f524dea0c3e03d5fa9ba361c0
web diff http://tartarus.org/~simon-git/gitweb/?p=puzzles.git;a=commitdiff;h=078d3c0a6d6ace0f524dea0c3e03d5fa9ba361c0;hp=d7a4c52937ddacc5c81049f0bfdf916df757277c
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Nov 26 21:25:02 2014 +0000
Remove an inappropriate assertion in validation context.
spec_to_dsf() should not report invalid input by failing an assertion,
because one of the contexts it's called from is validate_desc(), in
which the whole point is to present a useful error message to the user
before getting to the point where an assertion might go off at all.
Game description 5j:c1_5o4_3c,c___aba___cca_a_a_aca now fails
validation cleanly, where previously it would trigger this bug.
solo.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
More information about the tartarus-commits
mailing list