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

RESOLVED FIXED

Status

()

RESOLVED FIXED
16 years ago
6 years ago

People

(Reporter: timeless, Assigned: timeless)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

16 years ago
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
Last Resolved: 7 years ago
Resolution: --- → FIXED
Component: DOM: Traversal-Range → DOM: Core & HTML
Product: Core → Core
You need to log in before you can comment on or make changes to this bug.