Closed Bug 615361 Opened 14 years ago Closed 14 years ago

warning: cast from pointer to integer of different size in jsd

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b8

People

(Reporter: timeless, Assigned: timeless)

Details

Attachments

(1 file)

js/jsd/jsd_atom.c:
 In function ‘jsd_CreateAtomTable’:
106: warning: cast from pointer to integer of different size

js/jsd/jsd_obj.c: In function ‘_hash_root’:
175: warning: cast from pointer to integer of different size
 In function ‘jsd_InitObjectManager’:
185: warning: cast from pointer to integer of different size
js/jsd/jsd_scpt.c:
 In function ‘jsd_hash_script’:
235: warning: cast from pointer to integer of different size
 In function ‘jsd_InitScriptManager’:
282: warning: cast from pointer to integer of different size

there are two cases here:
1. to coerce to a bool you need to use !!
2. to convert from a pointer to an int you need to cast through ptrdiff_t
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #493808 - Flags: review?(bzbarsky)
Attachment #493808 - Flags: approval2.0?
Attachment #493808 - Flags: review?(bzbarsky)
Attachment #493808 - Flags: review+
Attachment #493808 - Flags: approval2.0?
Attachment #493808 - Flags: approval2.0+
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/1b37f953b5e4
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
Component: JavaScript Debugging/Profiling APIs → JavaScript Engine
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: