зеркало из https://github.com/mozilla/gecko-dev.git
Bug 21472. Use only strict relationals with LL_CMP(). r=brendan
This commit is contained in:
Родитель
446cad0e49
Коммит
619d700ee4
|
@ -297,7 +297,7 @@ operator >(const nsInt64& aObject1, const nsInt64& aObject2) {
|
|||
*/
|
||||
inline PRBool
|
||||
operator >=(const nsInt64& aObject1, const nsInt64& aObject2) {
|
||||
return LL_CMP(aObject1.mValue, >=, aObject2.mValue);
|
||||
return ! LL_CMP(aObject1.mValue, <, aObject2.mValue);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -313,7 +313,7 @@ operator <(const nsInt64& aObject1, const nsInt64& aObject2) {
|
|||
*/
|
||||
inline PRBool
|
||||
operator <=(const nsInt64& aObject1, const nsInt64& aObject2) {
|
||||
return LL_CMP(aObject1.mValue, <=, aObject2.mValue);
|
||||
return ! LL_CMP(aObject1.mValue, >, aObject2.mValue);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче