diff --git a/mozilla/base/src/unix/nsFileSpecUnix.cpp b/mozilla/base/src/unix/nsFileSpecUnix.cpp index 3d7bbe5abca..76c9b7cc613 100644 --- a/mozilla/base/src/unix/nsFileSpecUnix.cpp +++ b/mozilla/base/src/unix/nsFileSpecUnix.cpp @@ -184,7 +184,7 @@ void nsFileSpec::operator += (const char* inRelativePath) if (!inRelativePath || mPath.IsEmpty()) return; - char endChar = mPath[strlen(mPath) - 1]; + char endChar = mPath[(int)(strlen(mPath) - 1)]; if (endChar == '/') mPath += "x"; else diff --git a/mozilla/xpcom/io/nsFileSpecUnix.cpp b/mozilla/xpcom/io/nsFileSpecUnix.cpp index 3d7bbe5abca..76c9b7cc613 100644 --- a/mozilla/xpcom/io/nsFileSpecUnix.cpp +++ b/mozilla/xpcom/io/nsFileSpecUnix.cpp @@ -184,7 +184,7 @@ void nsFileSpec::operator += (const char* inRelativePath) if (!inRelativePath || mPath.IsEmpty()) return; - char endChar = mPath[strlen(mPath) - 1]; + char endChar = mPath[(int)(strlen(mPath) - 1)]; if (endChar == '/') mPath += "x"; else