projects
/
libs
/
core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9f8d6a1
)
Fix a 64-bit compile error
author
Mikko Rasa
<tdb@tdb.fi>
Tue, 10 Jul 2012 09:02:34 +0000
(12:02 +0300)
committer
Mikko Rasa
<tdb@tdb.fi>
Thu, 26 Jul 2012 19:30:18 +0000
(22:30 +0300)
source/fs/path.cpp
patch
|
blob
|
history
diff --git
a/source/fs/path.cpp
b/source/fs/path.cpp
index 703be2b404744cbe76515ca4ebf40c4226649267..4db7f0cc140185d46234aa54eebfb1042af4e160 100644
(file)
--- 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)
{
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
<string::size_type>
(slash-start, 1U)));
if(slash==string::npos)
break;
start = slash+1;
if(slash==string::npos)
break;
start = slash+1;