git: games/atc: Fix a logic bug.

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


commit a33bbb6c241cbfacccc550489091097ccf58eb41
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/a33bbb6c241cbfacccc550489091097ccf58eb41


-- 
DragonFly BSD source repository


More information about the Commits mailing list