Closed Bug 695025 Opened 14 years ago Closed 14 years ago

don't use false when we really mean NULL

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla10

People

(Reporter: froydnj, Assigned: froydnj)

Details

Attachments

(1 file)

The JS engine has several places where we return false from methods that return pointer types. We should be returning NULL instead. (These locations were caught by GCC 4.7's -Wconversion-null flag.) Patch incoming.
Attachment #567478 - Flags: review?(luke)
Comment on attachment 567478 [details] [diff] [review] s/false/NULL/ in appropriate places Thanks!
Attachment #567478 - Flags: review?(luke) → review+
Keywords: checkin-needed
Assignee: general → nfroyd
Status: NEW → ASSIGNED
Keywords: checkin-needed
Target Milestone: --- → mozilla10
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: