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)
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.
Reporter | ||
Comment 1•11 years ago
|
||
This was already fixed in
https://developer.mozilla.org/en-US/docs/PR_IntervalNow$compare?to=132922&from=132921
and the old version has been archived to
http://www-archive.mozilla.org/projects/nspr/reference/html/prinrvl.html#21002
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.
Description
•