Closed Bug 651309 Opened 14 years ago Closed 11 years ago

"Interval Timing" documentation says "In C, the difference between any two fields is signed"

Categories

(NSPR :: NSPR, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: karlt, Assigned: wtc)

Details

http://www.mozilla.org/projects/nspr/reference/html/prinrvl.html#21002 says "In C, the difference between any two fields is signed", which is wrong. The guide is correct that "(PRIntervalTime)(PR_IntervalNow() - epoch) > interval" deserves the (PRUint32) cast, but the reason is that PRUint32 will be promoted to signed int (only) on systems where int has more than 32 bits of precision.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.