simon-git: puzzles (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Tue Mar 24 19:27:50 GMT 2015


TL;DR:
  195217a Fix a compile warning on ARM.

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:           2015-03-24 19:27:50

commit 195217a48062c3ee64a47b1d0b5327e5838a105c
web diff http://tartarus.org/~simon-git/gitweb/?p=puzzles.git;a=commitdiff;h=195217a48062c3ee64a47b1d0b5327e5838a105c;hp=05b533d1f899e448fae25e27614543147f9acffa
Author: Simon Tatham <anakin at pobox.com>
Date:   Tue Mar 24 19:20:03 2015 +0000

    Fix a compile warning on ARM.
    
    Aapo Rantalainen points out that comparing 'char c' against zero gives
    rise to gcc's "comparison is always false" warning, which escalates to
    an error under -Werror.
    
    This is one of those situations where the warning is doing more harm
    than good, but here's a rephrasing which casts to unsigned so that
    both negative numbers and positive out-of-range ones can be caught by
    the same comparison.

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



More information about the tartarus-commits mailing list