зеркало из 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();
|
PRTime now = PR_Now();
|
||||||
int64_t interval, diff;
|
|
||||||
|
|
||||||
LL_I2L(interval, GetNotificationInterval());
|
int64_t interval = GetNotificationInterval();
|
||||||
diff = now - mLastNotificationTime;
|
int64_t diff = now - mLastNotificationTime;
|
||||||
|
|
||||||
if (diff > interval) {
|
if (diff > interval) {
|
||||||
mBackoffCount--;
|
mBackoffCount--;
|
||||||
|
|
|
@ -104,9 +104,7 @@ rdf_ParseDate(const nsACString &aTime)
|
||||||
usec += *digit - '0';
|
usec += *digit - '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
PRTime temp;
|
t += usec;
|
||||||
LL_I2L(temp, usec);
|
|
||||||
t += temp;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
|
|
|
@ -1109,11 +1109,7 @@ FileSystemDataSource::GetLastMod(nsIRDFResource *source, nsIRDFDate **aResult)
|
||||||
return(rv);
|
return(rv);
|
||||||
|
|
||||||
// convert from milliseconds to seconds
|
// convert from milliseconds to seconds
|
||||||
PRTime temp64, thousand;
|
mRDFService->GetDateLiteral(lastModDate * PR_MSEC_PER_SEC, aResult);
|
||||||
LL_I2L(thousand, PR_MSEC_PER_SEC);
|
|
||||||
temp64 = lastModDate * thousand;
|
|
||||||
|
|
||||||
mRDFService->GetDateLiteral(temp64, aResult);
|
|
||||||
|
|
||||||
return(NS_OK);
|
return(NS_OK);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче