Bug 21472. Use only strict relationals with LL_CMP(). r=brendan

This commit is contained in:
waterson%netscape.com 2000-01-06 20:22:29 +00:00
Родитель 446cad0e49
Коммит 619d700ee4
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);
}
/**