Changeset 2537


Ignore:
Timestamp:
Feb 6, 2006, 11:10:06 PM (20 years ago)
Author:
bird
Message:

#30: Fixed toupper / tolower EOF regression. (forgot to commit it)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/include/_ctype.h

    r2511 r2537  
    185185static __inline__ __ct_rune_t __toupper(__ct_rune_t __ch)
    186186{
    187     return __ch <= 255 && __ch >= -128
     187    return __ch <= 255 && __ch >= -128 && __ch != -1 /*EOF*/
    188188        ? __libc_GLocaleCtype.auchUpper[__ch & 0xff]
    189189        : (__ch);
     
    192192static __inline__ __ct_rune_t __tolower(__ct_rune_t __ch)
    193193{
    194     return __ch <= 255 && __ch >= -128
     194    return __ch <= 255 && __ch >= -128 && __ch != -1 /*EOF*/
    195195        ? __libc_GLocaleCtype.auchLower[__ch & 0xff]
    196196        : __ch;
Note: See TracChangeset for help on using the changeset viewer.