git: DragonFly_RELEASE_3_2 games/atc: Fix a logic bug.

Sascha Wildner swildner at crater.dragonflybsd.org
Thu Feb 7 11:11:27 PST 2013


commit e1dad499f942b88618bab2f62bdd2f7ae9f58209
Author: Sascha Wildner <saw at online.de>
Date:   Thu Feb 7 20:05:52 2013 +0100

    games/atc: Fix a logic bug.
    
    The original logic should have really been:
    
    if ((l < 'a' && l > 'z') || (l < 'A' && l > 'Z'))
    
    But using islower()/isupper() is simpler and more readable.
    
    Taken-from: NetBSD

Summary of changes:
 games/atc/update.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e1dad499f942b88618bab2f62bdd2f7ae9f58209


-- 
DragonFly BSD source repository


More information about the Commits mailing list