VirtualBox

Changeset 192 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 19, 2007 7:41:37 PM (18 years ago)
Author:
vboxsync
Message:

reapplied Klaus' patch, fixed typo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/log.cpp

    r178 r192  
    5757*******************************************************************************/
    5858/** Ascii to lower macro. */
    59 #define CHLOWER(ch)     (((unsigned char)(ch) - (unsigned char)'A') > (unsigned char)('Z' - 'A') ? (ch) : (ch) + ('a' - 'A'))
     59#define CHLOWER(ch)     (((unsigned char)(ch) < (unsigned char)'A') || ((unsigned char)(ch) > (unsigned char)'Z') ? (ch) : (ch) + ('a' - 'A'))
    6060
    6161
     
    10321032                {
    10331033                    if (    (*psz2 >= 'a' && *psz2 <= 'z')
    1034                         ||  (*psz2 >= 'A' && *psz2 <= 'Z') )
     1034                        ||  (*psz2 >= 'A' && *psz2 <= 'Z')
     1035                        ||  (*psz2 >= '0' && *psz2 <= '9') )
    10351036                        break;
    10361037                    fFlags |= aFlags[i].fFlag;
     
    17011702        for (;;)
    17021703        {
    1703             #if defined(DEBUG) && defined(IN_RING3)
     1704#if defined(DEBUG) && defined(IN_RING3)
    17041705            /* sanity */
    17051706            if (pLogger->offScratch >= sizeof(pLogger->achScratch))
     
    17091710                AssertBreakpoint(); AssertBreakpoint();
    17101711            }
    1711             #endif
     1712#endif
    17121713
    17131714            /* how much */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette