Fix Linux build of SVN code.
This commit is contained in:
parent
6a2e2b704e
commit
6392cf5a2f
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user