Closed
Bug 661517
Opened 13 years ago
Closed 13 years ago
nsWebSocketHandler.cpp fails to compile on mingw-w64
Categories
(Core :: Networking: WebSockets, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jacek, Assigned: jacek)
Details
Attachments
(1 file, 1 obsolete file)
996 bytes,
patch
|
mcmanus
:
review+
|
Details | Diff | Splinter Review |
mozilla-central/netwerk/protocol/websocket/nsWebSocketHandler.cpp:966:36: error: cast from 'PRUint8*' to 'long unsigned int' loses precision [-fpermissive] That's because long is 32-bit on win64. In this case we don't care about losing precision, but it's still an error for GCC. The fix is as simple as using uintptr_t.
Attachment #536870 -
Flags: review?(Olli.Pettay)
Comment 1•13 years ago
|
||
Could you cast to some PRU*** type?
Comment 2•13 years ago
|
||
Comment on attachment 536870 [details] [diff] [review] fix v1.0 Or, uintptr_t could be ok, but this is Patrick's code
Attachment #536870 -
Flags: review?(Olli.Pettay) → review?(mcmanus)
Assignee | ||
Comment 3•13 years ago
|
||
The attached patch uses PRUptrdiff instead of uintptr_t. Please choose preferred version.
Attachment #537132 -
Flags: review?
Comment 4•13 years ago
|
||
Comment on attachment 536870 [details] [diff] [review] fix v1.0 Review of attachment 536870 [details] [diff] [review]: ----------------------------------------------------------------- Jacek, what do you think about using PRUptrdiff ? There are a number of places in the code base (netwerk is not one of them) that go to some length to make sure uintptr_t is defined for old platforms.
Updated•13 years ago
|
Attachment #537132 -
Flags: review? → review+
Updated•13 years ago
|
Attachment #536870 -
Flags: review?(mcmanus)
Comment 5•13 years ago
|
||
(In reply to comment #3) > Created attachment 537132 [details] [diff] [review] [review] > fix using PRUptrdiff > > The attached patch uses PRUptrdiff instead of uintptr_t. Please choose > preferred version. heh - race condition. good to go.
Updated•13 years ago
|
Attachment #536870 -
Attachment is obsolete: true
Assignee | ||
Comment 6•13 years ago
|
||
Thanks for the review, pushed to m-c: http://hg.mozilla.org/mozilla-central/rev/780fb17abc1e
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•