VirtualBox

Changeset 36625 in vbox for trunk


Ignore:
Timestamp:
Apr 8, 2011 2:59:45 PM (14 years ago)
Author:
vboxsync
Message:

iprt/string.h: Adjusted RTSTR_MEMCHR_MAX so that buggy implementations treating the size as signed will work. (The fix isn't quite optimal I'm afraid.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/string.h

    r36555 r36625  
    24292429
    24302430/** The maximum size argument of a memchr call. */
    2431 #define RTSTR_MEMCHR_MAX            (~(size_t)0x10000)
     2431#define RTSTR_MEMCHR_MAX            (~(size_t)0 >> 1)
    24322432
    24332433/**
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