VirtualBox

Changeset 93096 in vbox for trunk/src


Ignore:
Timestamp:
Dec 29, 2021 10:21:13 AM (3 years ago)
Author:
vboxsync
Message:

Main/UnattendedOs2Installer: Annoying clang warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/UnattendedOs2Installer.cpp

    r93094 r93096  
    849849        if (   !pszTail
    850850            || pszTail - pszMarker > 64
    851             || memchr(pszMarker, '\\', pszTail - pszMarker)
    852             || memchr(pszMarker, '/', pszTail - pszMarker)
    853             || memchr(pszMarker, ':', pszTail - pszMarker)
     851            || memchr(pszMarker, '\\', (size_t)(pszTail - pszMarker))
     852            || memchr(pszMarker, '/',  (size_t)(pszTail - pszMarker))
     853            || memchr(pszMarker, ':',  (size_t)(pszTail - pszMarker))
    854854           )
    855855            return mpParent->setErrorBoth(E_FAIL, VERR_PARSE_ERROR,
    856856                                          tr("Malformed splitter tag in '%s' at offset %p: @@VBOX_SPLITTER_START[%.64s"),
    857857                                          pszFileToSplit, (size_t)(pszEnd - pszMarker), pszMarker);
    858         int vrc = RTStrValidateEncodingEx(pszMarker, pszTail - pszMarker, RTSTR_VALIDATE_ENCODING_EXACT_LENGTH);
     858        int vrc = RTStrValidateEncodingEx(pszMarker, (size_t)(pszTail - pszMarker), RTSTR_VALIDATE_ENCODING_EXACT_LENGTH);
    859859        if (RT_FAILURE(vrc))
    860860            return mpParent->setErrorBoth(E_FAIL, vrc,
     
    877877        /* Advance. */
    878878        pszSrc = pszDocStart;
    879         cbLeft = pszEnd - pszDocStart;
     879        cbLeft = (size_t)(pszEnd - pszDocStart);
    880880
    881881        /*
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