From: Mikko Rasa Date: Tue, 10 Jul 2012 09:02:34 +0000 (+0300) Subject: Fix a 64-bit compile error X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=d6a72ed8ba181dc35bd750811bf4a10a5583d472 Fix a 64-bit compile error --- diff --git a/source/fs/path.cpp b/source/fs/path.cpp index 703be2b..4db7f0c 100644 --- a/source/fs/path.cpp +++ b/source/fs/path.cpp @@ -39,7 +39,7 @@ void Path::init(const string &p) { string::size_type slash = p.find_first_of("/\\", start); if(slash>start || start==0) - add_component(p.substr(start, max(slash-start, 1U))); + add_component(p.substr(start, max(slash-start, 1U))); if(slash==string::npos) break; start = slash+1;