VirtualBox

Changeset 78191 in vbox for trunk/src/VBox/GuestHost/OpenGL


Ignore:
Timestamp:
Apr 18, 2019 12:20:31 AM (6 years ago)
Author:
vboxsync
Message:

Some build fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_unpack.h

    r78190 r78191  
    126126    {
    127127        pState->rcUnpack = VERR_BUFFER_OVERFLOW;
    128         return SIZE_MAX;
     128        return ~(size_t)0;
    129129    }
    130130
     
    141141    { \
    142142        size_t cchStr = crUnpackAcccessChkStrUpdate((a_pState), (a_pszStr), &int_cbAccessVerified); \
    143         if (RT_UNLIKELY(cchStr == SIZE_MAX)) \
     143        if (RT_UNLIKELY(cchStr == ~(size_t)0)) \
    144144            return; \
    145145    } \
     
    165165    do \
    166166    { \
    167         if (RT_UNLIKELY((a_pState)->cbUnpackDataLeft < (delta))) \
     167        if (RT_UNLIKELY((a_pState)->cbUnpackDataLeft < (size_t)(delta))) \
    168168        { \
    169169          (a_pState)->rcUnpack = VERR_BUFFER_OVERFLOW; \
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