зеркало из https://github.com/mozilla/gecko-dev.git
Bug 895168 - Part 1: Stop using LL_I2L in the tree; r=jcranmer
--HG-- extra : rebase_source : b66b363de4c4e132ef94181d2b7d8f008caa643a
This commit is contained in:
Родитель
bb76747efb
Коммит
513b1e2bf6
|
@ -1257,10 +1257,9 @@ nsContentSink::IsTimeToNotify()
|
|||
}
|
||||
|
||||
PRTime now = PR_Now();
|
||||
int64_t interval, diff;
|
||||
|
||||
LL_I2L(interval, GetNotificationInterval());
|
||||
diff = now - mLastNotificationTime;
|
||||
int64_t interval = GetNotificationInterval();
|
||||
int64_t diff = now - mLastNotificationTime;
|
||||
|
||||
if (diff > interval) {
|
||||
mBackoffCount--;
|
||||
|
|
|
@ -104,9 +104,7 @@ rdf_ParseDate(const nsACString &aTime)
|
|||
usec += *digit - '0';
|
||||
}
|
||||
|
||||
PRTime temp;
|
||||
LL_I2L(temp, usec);
|
||||
t += temp;
|
||||
t += usec;
|
||||
}
|
||||
|
||||
return t;
|
||||
|
|
|
@ -1109,11 +1109,7 @@ FileSystemDataSource::GetLastMod(nsIRDFResource *source, nsIRDFDate **aResult)
|
|||
return(rv);
|
||||
|
||||
// convert from milliseconds to seconds
|
||||
PRTime temp64, thousand;
|
||||
LL_I2L(thousand, PR_MSEC_PER_SEC);
|
||||
temp64 = lastModDate * thousand;
|
||||
|
||||
mRDFService->GetDateLiteral(temp64, aResult);
|
||||
mRDFService->GetDateLiteral(lastModDate * PR_MSEC_PER_SEC, aResult);
|
||||
|
||||
return(NS_OK);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче