Or even simpler: Use the %p conversion specifier, without any need for ugly
casting...

On Wed, Jun 29, 2011 at 16:27, <[email protected]> wrote:

> Reviewers: Søren Gjesse,
>
> Message:
> PTAL.
>
> Description:
> Fix build on x64
>
>
> Please review this at 
> http://codereview.chromium.**org/7284011/<http://codereview.chromium.org/7284011/>
>
> SVN Base: 
> https://v8.googlecode.com/svn/**branches/bleeding_edge<https://v8.googlecode.com/svn/branches/bleeding_edge>
>
> Affected files:
>  M test/cctest/test-compiler.cc
>
>
> Index: test/cctest/test-compiler.cc
> diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc
> index 380d6d95ce78f1fefcaaf9f9735f07**1b46eeb2d5..**
> 5bf096c92b39d655d3c93858ac2c74**0f4a7db734 100644
> --- a/test/cctest/test-compiler.cc
> +++ b/test/cctest/test-compiler.cc
> @@ -378,7 +378,8 @@ static void CheckCodeForUnsafeLiteral(**Handle<JSFunction>
> f) {
>
>     v8::internal::EmbeddedVector<**char, 128> decode_buffer;
>     while (pc < end) {
> -      PrintF("%08x\n", reinterpret_cast<intptr_t>(pc)**);
> +      PrintF("%08x\n",
> +             static_cast<unsigned int>(reinterpret_cast<intptr_**
> t>(pc)));
>       pc += d.InstructionDecode(decode_**buffer, pc);
>       CHECK(strstr(decode_buffer.**start(), "mov eax,0x178c29c") == NULL);
>       CHECK(strstr(decode_buffer.**start(), "push 0x178c29c") == NULL);
>
>
> --
> v8-dev mailing list
> [email protected]
> http://groups.google.com/**group/v8-dev<http://groups.google.com/group/v8-dev>
>

-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to