Closed Bug 307492 Opened 19 years ago Closed 19 years ago

64-bit unsafe cast in TestIOThreads.cpp

Categories

(Core :: Networking, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: benjamin, Assigned: benjamin)

Details

(Keywords: fixed1.8)

Attachments

(1 file)

There is a 64-bit unsafe cast from void* -> int in TestIOThreads.cpp causing my
build to fail on x86_64 gcc 4.0.1
Attachment #195256 - Flags: review?(darin)
Comment on attachment 195256 [details] [diff] [review]
Use NS_PTR_TO_INT32, rev. 1

why not %p and avoid the dataloss?
Attachment #195256 - Flags: review?(darin) → review-
Comment on attachment 195256 [details] [diff] [review]
Use NS_PTR_TO_INT32, rev. 1

Because it's not:
http://lxr.mozilla.org/mozilla/source/netwerk/test/TestIOThreads.cpp#72
Attachment #195256 - Flags: review- → review?(darin)
oh, ok, sorry... should that code use NS_INT32_TO_PTR, then?
Attachment #195256 - Flags: review?(darin) → review+
Fixed on trunk for 1.9a. I'd like to get this on branch also.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha
Attachment #195256 - Flags: approval1.8b5?
Attachment #195256 - Flags: approval1.8b5? → approval1.8b5+
Landed on 1.8 branch.
Keywords: fixed1.8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: