commitmonitor Code
Monitor your SVN repositories and notifies you on new commits
Brought to you by:
steveking
--- a/trunk/src/DiffViewer.cpp +++ b/trunk/src/DiffViewer.cpp @@ -342,8 +342,8 @@ { //SetTitle(); char data[4096]; - int lenFile = fread(data, 1, sizeof(data), fp); - bool bUTF8 = IsUTF8(data, lenFile); + size_t lenFile = fread(data, 1, sizeof(data), fp); + bool bUTF8 = IsUTF8(data, (int)lenFile); while (lenFile > 0) { SendEditor(SCI_ADDTEXT, lenFile, @@ -386,7 +386,7 @@ void CDiffViewer::SetTitle(LPCTSTR title) { - int len = _tcslen(title); + size_t len = _tcslen(title); TCHAR * pBuf = new TCHAR[len+40]; _stprintf_s(pBuf, len+40, _T("%s - CMDiff"), title); SetWindowTitle(std::wstring(pBuf));