simon-git: puzzles (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sat Dec 11 13:58:28 GMT 2021


TL;DR:
  b56c994 Pattern: fix a compile warning about memset bounds.

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:           2021-12-11 13:58:28

commit b56c994b721f7cb5c5bcf09c5d695d4ae07d3052
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=b56c994b721f7cb5c5bcf09c5d695d4ae07d3052;hp=d399a6b23051335ce3107f11822ae352816fcd50
Author: Simon Tatham <anakin at pobox.com>
Date:   Sat Dec 11 13:56:12 2021 +0000

    Pattern: fix a compile warning about memset bounds.
    
    The argument to memset was being taken from an int variable that not
    all compilers are able to prove is non-negative. Adding an assert
    convinces them.

 pattern.c | 2 ++
 1 file changed, 2 insertions(+)



More information about the tartarus-commits mailing list