From: James Turner Date: Sun, 9 Jun 2013 22:14:25 +0000 (+0100) Subject: Fix Linux build of SVN code. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;ds=sidebyside;h=6392cf5a2f43b0560b99fbafde32fce3fdc0d94d;p=simgear.git Fix Linux build of SVN code. --- diff --git a/simgear/io/SVNDirectory.cxx b/simgear/io/SVNDirectory.cxx index fa857f1c..311fc4f9 100644 --- a/simgear/io/SVNDirectory.cxx +++ b/simgear/io/SVNDirectory.cxx @@ -28,7 +28,7 @@ typedef std::map 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); diff --git a/simgear/io/SVNReportParser.cxx b/simgear/io/SVNReportParser.cxx index f00973cf..698e9af4 100644 --- a/simgear/io/SVNReportParser.cxx +++ b/simgear/io/SVNReportParser.cxx @@ -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(); }