Closed Bug 198956 Opened 19 years ago Closed 9 years ago

nsRange::GetNodeLength declares len as unsigned and uses it as signed

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

Details

653 PRInt32 nsRange::GetNodeLength(nsIDOMNode *aNode)
 654 {
 659   PRUint32 len = -1;
 677   return len;
 678 }

This triggers warnings and is silly.
QA Contact: desale → traversal-range
This was evidently fixed long ago.  Today's nsRange::GetNodeLength returns a PRUint32.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Component: DOM: Traversal-Range → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.