VirtualBox

vbox的更動 36579 路徑 trunk/src/VBox/Runtime/generic


忽略:
時間撮記:
2011-4-6 下午01:45:19 (14 年 以前)
作者:
vboxsync
訊息:

iprt: fix win burns

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/generic/RTDirCreateUniqueNumbered-generic.cpp

    r36577 r36579  
    3737#include <iprt/string.h>
    3838
    39 RTDECL(int) RTDirCreateUniqueNumbered(char *pszPath, size_t cbSize, RTFMODE fMode, size_t cchDigits, char chSep)
     39RTDECL(int) RTDirCreateUniqueNumbered(char *pszPath, size_t cbSize, RTFMODE fMode, signed int cchDigits, char chSep)
    4040{
    4141    /*
     
    4747    /* Check for enough space. */
    4848    char *pszEnd = strchr(pszPath, '\0');
    49     AssertReturn(cbSize - 1 - (pszEnd - pszPath) >= cchDigits + (chSep ? 1 : 0), VERR_BUFFER_OVERFLOW);
     49    AssertReturn(cbSize - 1 - (pszEnd - pszPath) >= (size_t)cchDigits + (chSep ? 1 : 0), VERR_BUFFER_OVERFLOW);
    5050
    5151    /* First try is to create the path without any numbers. */
     
    6464    /* How many tries? */
    6565    size_t cMaxTries = 10;
    66     for (size_t i = 0; i < cchDigits - 1; ++i)
     66    for (size_t i = 0; i < (size_t)cchDigits - 1; ++i)
    6767        cMaxTries *= 10;
    6868
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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