Closed Bug 21472 Opened 26 years ago Closed 26 years ago

Illegal usage of LL_CMP(foo,<=,bar)

Categories

(Core :: XPCOM, defect, P3)

All
Mac System 8.5
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: sfraser_bugs, Assigned: waterson)

References

Details

(Keywords: verifyme)

Attachments

(1 file)

LL_CMP() cannot be used with an operator of <= or >=, because this breaks the LL_CMP macro on compilers lacking long long (for performance reasons; ask brendan). This used to be documented in the NSPR header, but that documentation has since been lost. Please fix your usages of this macro in nsInt64.h
Component: Browser-General → XPCOM
Fix component. Bug 21428 addresses the broken LL_CMP macro issue.
Status: NEW → ASSIGNED
Target Milestone: M13
Attached patch proposed fixSplinter Review
sfraser, brendan: could one of you review my changes? replaced e.g. a>=b with !(a<b)
r=brendan@mozilla.org,a=brendan@mozilla.org Isn't wtc fixing the macro to work with non-strict relationals? /be
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
fix checked in.
Depends on: 21428
No longer depends on: 21428
Chris, I just checked in the fix for the LL_CMP macro. You can now back out your workaround in nsInt64.h (attachment 4008 [details] [diff] [review]).
Depends on: 21428
Adding verifyme keyword.
Keywords: verifyme
I am assuming per all of you comments, and since this is an old bug that all is well here. marking Verified. Please reopen if still an open issue.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: