VirtualBox

Changeset 14060 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Nov 10, 2008 11:10:48 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39116
Message:

stream.cpp: shut up 64-bit MSC warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/stream.cpp

    r8245 r14060  
    204204    int     rc;
    205205    char    szFilename[RTPATH_MAX];
    206     int     cch = RTStrPrintf(szFilename, sizeof(szFilename), pszFilenameFmt, args);
    207     if (cch < (int)sizeof(szFilename))
     206    size_t  cch = RTStrPrintf(szFilename, sizeof(szFilename), pszFilenameFmt, args);
     207    if (cch < sizeof(szFilename))
    208208        rc = RTStrmOpen(szFilename, pszMode, ppStream);
    209209    else
     
    626626            #ifdef HAVE_FWRITE_UNLOCKED
    627627            flockfile(pStream->pFile);
    628             rc = RTStrFormatV(rtstrmOutput, pStream, NULL, NULL, pszFormat, args);
     628            rc = (int)RTStrFormatV(rtstrmOutput, pStream, NULL, NULL, pszFormat, args);
    629629            funlockfile(pStream->pFile);
    630630            #else
    631             rc = RTStrFormatV(rtstrmOutput, pStream, NULL, NULL, pszFormat, args);
     631            rc = (int)RTStrFormatV(rtstrmOutput, pStream, NULL, NULL, pszFormat, args);
    632632            #endif
     633            Assert(rc >= 0);
    633634        }
    634635        else
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