aboutsummaryrefslogtreecommitdiff
path: root/CPP/Windows/FileName.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--CPP/Windows/FileName.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/CPP/Windows/FileName.cpp b/CPP/Windows/FileName.cpp
index c9c4f8b..c16b3d4 100644
--- a/CPP/Windows/FileName.cpp
+++ b/CPP/Windows/FileName.cpp
@@ -302,13 +302,13 @@ int FindAltStreamColon(CFSTR path) throw()
302static unsigned GetRootPrefixSize_Of_NetworkPath(CFSTR s) 302static unsigned GetRootPrefixSize_Of_NetworkPath(CFSTR s)
303{ 303{
304 // Network path: we look "server\path\" as root prefix 304 // Network path: we look "server\path\" as root prefix
305 int pos = FindSepar(s); 305 const int pos = FindSepar(s);
306 if (pos < 0) 306 if (pos < 0)
307 return 0; 307 return 0;
308 int pos2 = FindSepar(s + (unsigned)pos + 1); 308 const int pos2 = FindSepar(s + (unsigned)pos + 1);
309 if (pos2 < 0) 309 if (pos2 < 0)
310 return 0; 310 return 0;
311 return pos + pos2 + 2; 311 return (unsigned)pos + (unsigned)pos2 + 2;
312} 312}
313 313
314static unsigned GetRootPrefixSize_Of_SimplePath(CFSTR s) 314static unsigned GetRootPrefixSize_Of_SimplePath(CFSTR s)
@@ -334,7 +334,7 @@ static unsigned GetRootPrefixSize_Of_SuperPath(CFSTR s)
334 const int pos = FindSepar(s + kSuperPathPrefixSize); 334 const int pos = FindSepar(s + kSuperPathPrefixSize);
335 if (pos < 0) 335 if (pos < 0)
336 return 0; 336 return 0;
337 return kSuperPathPrefixSize + pos + 1; 337 return kSuperPathPrefixSize + (unsigned)pos + 1;
338} 338}
339 339
340unsigned GetRootPrefixSize(CFSTR s) throw() 340unsigned GetRootPrefixSize(CFSTR s) throw()