From 6392cf5a2f43b0560b99fbafde32fce3fdc0d94d Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 9 Jun 2013 23:14:25 +0100 Subject: [PATCH] Fix Linux build of SVN code. --- simgear/io/SVNDirectory.cxx | 4 ++-- simgear/io/SVNReportParser.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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(); } -- 2.39.5