This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[libstdc++]
- From: Richard Henderson <rth at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 27 Mar 2007 15:04:53 -0700
- Subject: [libstdc++]
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;
}