mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-02 19:24:25 +00:00
Fix more -Wshorten-64-to-32 warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -566,7 +566,7 @@ Path::createDirectoryOnDisk( bool create_parents, std::string* ErrMsg ) {
|
||||
path.copy(pathname,MAXPATHLEN);
|
||||
|
||||
// Null-terminate the last component
|
||||
int lastchar = path.length() - 1 ;
|
||||
size_t lastchar = path.length() - 1 ;
|
||||
|
||||
if (pathname[lastchar] != '/')
|
||||
++lastchar;
|
||||
@ -639,7 +639,7 @@ Path::eraseFromDisk(bool remove_contents, std::string *ErrStr) const {
|
||||
// Otherwise, try to just remove the one directory.
|
||||
char pathname[MAXPATHLEN];
|
||||
path.copy(pathname, MAXPATHLEN);
|
||||
int lastchar = path.length() - 1 ;
|
||||
size_t lastchar = path.length() - 1;
|
||||
if (pathname[lastchar] == '/')
|
||||
pathname[lastchar] = 0;
|
||||
else
|
||||
|
Reference in New Issue
Block a user