VirtualBox

Changeset 85254 in vbox for trunk/include


Ignore:
Timestamp:
Jul 11, 2020 11:31:00 PM (5 years ago)
Author:
vboxsync
Message:

iprt/bldprog-strtab.h: Signed/unsigned conversion issues. bugref:9790

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/bldprog-strtab.h

    r84054 r85254  
    9898        while (cchString-- > 0)
    9999        {
    100             unsigned char uch = *pchSrc++;
     100            unsigned char uch = *(unsigned char *)pchSrc++;
    101101            if (!(uch & 0x80))
    102102            {
     
    192192        while (cchString-- > 0)
    193193        {
    194             unsigned char uch = *pchSrc++;
     194            unsigned char uch = *(unsigned char *)pchSrc++;
    195195            if (!(uch & 0x80))
    196196            {
     
    221221                int rc = RTStrGetCpNEx(&pchSrc, &cchString, &uc);
    222222                if (RT_SUCCESS(rc))
    223                     cchRet += pfnOutput(pvArgOutput, pchUtf8Seq, pchSrc - pchUtf8Seq);
     223                    cchRet += pfnOutput(pvArgOutput, pchUtf8Seq, (size_t)(pchSrc - pchUtf8Seq));
    224224                else
    225225                    cchRet += pfnOutput(pvArgOutput, "?", 1);
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