This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]