DragonFly BSD
DragonFly commits List (threaded) for 2013-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: games/atc: Fix a logic bug.


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Feb 2013 11:10:47 -0800 (PST)

commit a33bbb6c241cbfacccc550489091097ccf58eb41
Author: Sascha Wildner <saw@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]