Fix the type passed to OpenNSPRFileDesc, no bug
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 06 Jan 2014 10:05:11 -0500
changeset 162187 0beea724bb11f7c3485549cbf8e86bf901fa3fb8
parent 162186 031f4999c5fe7a8d4235a9862ab9ed0a0a958fe6
child 162188 7ebd1e1a81978681ebe38d5af517b568e4b46aee
push idunknown
push userunknown
push dateunknown
milestone29.0a1
Fix the type passed to OpenNSPRFileDesc, no bug
dom/asmjscache/AsmJSCache.cpp
--- a/dom/asmjscache/AsmJSCache.cpp
+++ b/dom/asmjscache/AsmJSCache.cpp
@@ -456,17 +456,17 @@ MainProcessRunnable::OpenFileOnIOThread(
 
   rv = path->Append(NS_LITERAL_STRING(ASMJSCACHE_FILE_NAME));
   NS_ENSURE_SUCCESS(rv, rv);
 
   mQuotaObject = qm->GetQuotaObject(quota::PERSISTENCE_TYPE_TEMPORARY,
                                     mGroup, mOrigin, path);
   NS_ENSURE_STATE(mQuotaObject);
 
-  int openFlags;
+  int32_t openFlags;
   if (mOpenMode == eOpenForRead) {
     rv = path->GetFileSize(&mFileSize);
     if (NS_FAILED(rv)) {
       return rv;
     }
 
     openFlags = PR_RDONLY | nsIFile::OS_READAHEAD;
   } else {