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

RESOLVED FIXED in mozilla2.0b8

Status

()

Core
JavaScript Engine
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: timeless, Assigned: timeless)

Tracking

Trunk
mozilla2.0b8
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

7 years ago
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)

Comment 1

7 years ago
Created attachment 493808 [details] [diff] [review]
fixes per comment 0
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+
(Assignee)

Updated

7 years ago
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/1b37f953b5e4
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
Component: JavaScript Debugging/Profiling APIs → JavaScript Engine
Product: Core → Core
You need to log in before you can comment on or make changes to this bug.