VirtualBox

Changeset 8342 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 24, 2008 6:07:04 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30117
Message:

Frontends/VirtualBox3/4: assignment to signed is slightly nicer than cast to unsigned

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r8337 r8342  
    19731973                         + 4096 * 8; /* adapter info */
    19741974        CGuest guest = console->console().GetGuest();
    1975         ULONG maxWidth  = guest.GetMaxGuestWidth();
    1976         ULONG maxHeight = guest.GetMaxGuestHeight();
     1975        LONG maxWidth  = guest.GetMaxGuestWidth();
     1976        LONG maxHeight = guest.GetMaxGuestHeight();
    19771977        if (aOn && (   (availBits < usedBits)
    1978                     || ((maxWidth != 0) && (maxWidth < (ULONG) screen.width()))
    1979                     || ((maxHeight != 0) && (maxHeight < (ULONG) screen.height()))
     1978                    || ((maxWidth != 0) && (maxWidth < screen.width()))
     1979                    || ((maxHeight != 0) && (maxHeight < screen.height()))
    19801980                   )
    19811981           )
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp

    r8337 r8342  
    19961996                         + 4096 * 8; /* adapter info */
    19971997        CGuest guest = console->console().GetGuest();
    1998         ULONG maxWidth  = guest.GetMaxGuestWidth();
    1999         ULONG maxHeight = guest.GetMaxGuestHeight();
     1998        LONG maxWidth  = guest.GetMaxGuestWidth();
     1999        LONG maxHeight = guest.GetMaxGuestHeight();
    20002000        if (aOn && (   (availBits < usedBits)
    20012001                    || ((maxWidth != 0) && (maxWidth < screen.width()))
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