[libstdc++]
Richard Henderson
rth@redhat.com
Tue Mar 27 22:05:00 GMT 2007
Something like the following is required for Win64, which is a P64 target.
I'm not sure what's required generically to assert that intptr_t is
present; certainly it's available on Linux and Win64...
r~
* include/bits/locale_facets.tcc (do_put): Convert pointer to
intptr_t for printing.
--- include/bits/locale_facets.tcc (revision 123278)
+++ include/bits/locale_facets.tcc (local)
@@ -1314,7 +1314,7 @@ _GLIBCXX_BEGIN_LDBL_NAMESPACE
__io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase));
__s = _M_insert_int(__s, __io, __fill,
- reinterpret_cast<unsigned long>(__v));
+ reinterpret_cast<intptr_t>(__v));
__io.flags(__flags);
return __s;
}
More information about the Libstdc++
mailing list