Last Comment Bug 714646 - jsgc.cpp fails to compile on Win64 GCC
: jsgc.cpp fails to compile on Win64 GCC
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: Trunk
: x86_64 Windows 7
-- normal (vote)
: mozilla12
Assigned To: Jacek Caban
: Jason Orendorff [:jorendorff]
Depends on:
  Show dependency treegraph
Reported: 2012-01-02 09:27 PST by Jacek Caban
Modified: 2012-01-09 15:08 PST (History)
1 user (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

fix v1.0 (1.21 KB, patch)
2012-01-02 09:27 PST, Jacek Caban
igor: review+
Details | Diff | Splinter Review

Description User image Jacek Caban 2012-01-02 09:27:09 PST
Created attachment 585294 [details] [diff] [review]
fix v1.0

It fails because of cast from pointer to long, which loses precision on win64 and is an error by default on GCC. I've changed the code to use %p in JS_snprintf format, so that we don't need to cast anything.
Comment 1 User image Igor Bukanov 2012-01-06 07:37:17 PST
Comment on attachment 585294 [details] [diff] [review]
fix v1.0

Review of attachment 585294 [details] [diff] [review]:

Nice trick of using %p :)
Comment 2 User image Jacek Caban 2012-01-09 07:01:44 PST
Thanks for review, pushed to m-i:
Comment 3 User image Ed Morley [:emorley] 2012-01-09 15:08:35 PST

Note You need to log in before you can comment on or make changes to this bug.