VirtualBox

Changeset 87201 in vbox


Ignore:
Timestamp:
Jan 8, 2021 3:06:12 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142154
Message:

IPRT: memrchr.cpp fix, need it for arm. bugref:9898

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r87194 r87201  
    12891289RuntimeR3_SOURCES.darwin.x86   += common/string/memrchr.asm
    12901290RuntimeR3_SOURCES.darwin.amd64 += common/string/memrchr.asm
     1291RuntimeR3_SOURCES.darwin.arm32 += common/string/memrchr.cpp
     1292RuntimeR3_SOURCES.darwin.arm64 += common/string/memrchr.cpp
    12911293
    12921294## @todo Make BSD sched, implement RTMP*.
  • trunk/src/VBox/Runtime/common/string/memrchr.cpp

    r82968 r87201  
    3636 *
    3737 * @returns Pointer on a match or NULL otherwise.
    38  * @param   pb      Pointer to the block.
     38 * @param   pv      Pointer to the block.
    3939 * @param   ch      The char to search for.
    4040 * @param   cb      The size of the block.
    4141 */
    42 void *memrchr(const char *pb, int ch, size_t cb)
     42void *memrchr(const void *pv, int ch, size_t cb)
    4343{
    4444    if (cb)
    4545    {
    46         const char *pbCur = pb + cb - 1;
     46        const char *pbCur = (const char *)pv + cb - 1;
    4747
    4848        while (cb)
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