VirtualBox

Ignore:
Timestamp:
Feb 28, 2012 9:02:40 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76511
Message:

*: gcc-4.7: ~0 => ~0U in initializers (warning: narrowing conversion of -1' from int' to `unsigned int' inside { } is ill-formed in C++11 [-Wnarrowing])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp

    r34513 r40282  
    11841184       )
    11851185    {
    1186         SDL_Color clrFg = {(mSecureLabelColorFG & 0x00FF0000) >> 16,
    1187                            (mSecureLabelColorFG & 0x0000FF00) >> 8,
    1188                            mSecureLabelColorFG & 0x000000FF, 0};
     1186        SDL_Color clrFg = {(uint8_t)((mSecureLabelColorFG & 0x00FF0000) >> 16),
     1187                           (uint8_t)((mSecureLabelColorFG & 0x0000FF00) >> 8),
     1188                           (uint8_t)( mSecureLabelColorFG & 0x000000FF      ), 0};
    11891189        SDL_Surface *sText = (pTTF_RenderUTF8_Blended != NULL)
    11901190                                 ? pTTF_RenderUTF8_Blended(mLabelFont, mSecureLabelText.c_str(), clrFg)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette