Fix Linux build of SVN code.

This commit is contained in:
James Turner 2013-06-09 23:14:25 +01:00
parent 6a2e2b704e
commit 6392cf5a2f
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ typedef std::map<std::string, DAVResource*> DAVResourceMap;
const char* DAV_CACHE_NAME = ".terrasync_cache";
const char* CACHE_VERSION_4_TOKEN = "terrasync-cache-4";
const int MAX_UPDATE_REPORT_DEPTH = 3;
const unsigned int MAX_UPDATE_REPORT_DEPTH = 3;
enum LineState
{
@ -105,7 +105,7 @@ void SVNDirectory::parseCache()
while (!file.eof()) {
if (lineState == LINESTATE_HREF) {
file.getline(href, 1024);
++lineState;
lineState = LINESTATE_VERSIONNAME;
} else {
assert(lineState == LINESTATE_VERSIONNAME);
file.getline(versionName, 1024);

View File

@ -442,7 +442,7 @@ public:
string tagN(const unsigned int n) const
{
int sz = tagStack.size();
size_t sz = tagStack.size();
if (n >= sz) {
return string();
}