simon-git: puzzles (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Wed Feb 8 18:25:14 GMT 2023


TL;DR:
  bd5c0a3 Unequal: fix sense error in latin_solver_alloc fix.

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2023-02-08 18:25:14

commit bd5c0a37a019c540eda05f8291cad90ffd598134
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=bd5c0a37a019c540eda05f8291cad90ffd598134;hp=49841bd0fc04490d94cf32c0e6f9d3f4ffabe098
Author: Simon Tatham <anakin at pobox.com>
Date:   Wed Feb 8 18:22:23 2023 +0000

    Unequal: fix sense error in latin_solver_alloc fix.
    
    In commit 5030d87903191d5 I gave latin_solver_alloc a return value,
    and introduced a check of that value at every call site. One of the
    checks was backwards, with the effect that Unequal game generation now
    more or less always fails an assertion. For example:
    
    $ unequal --generate 1 4#12345
    unequal: unequal.c:1072: gg_best_clue: Assertion `best != -1' failed.

 unequal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the tartarus-commits mailing list