Changeset b9e7944 in mainline


Ignore:
Timestamp:
2008-11-23T18:47:02Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
08b6836
Parents:
a5da446
Message:

Get rid of meaningless voodo in tolower()/toupper().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/ctype.h

    ra5da446 rb9e7944  
    8080{
    8181        if (isupper(c))
    82                 return (c + ('a' - 'A' > 0 ? 'a' - 'A' : 'A' - 'a'));
     82                return (c + ('a' - 'A'));
    8383        else
    8484                return c;
     
    8888{
    8989        if (islower(c))
    90                 return (c - ('a' - 'A' > 0 ? 'a' - 'A' : 'A' - 'a'));
     90                return (c + ('A' - 'a'));
    9191        else
    9292                return c;
Note: See TracChangeset for help on using the changeset viewer.