This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] num_put::do_put(const void*) when sizeof(long) != sizeof(void*)
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>,Phil Edwards <phil at codesourcery dot com>
- Date: Tue, 24 Aug 2004 01:36:54 +0200
- Subject: Re: [RFC] num_put::do_put(const void*) when sizeof(long) != sizeof(void*)
- References: <4128C599.1090600@suse.de> <412A7C97.1030801@suse.de>
Paolo Carlini wrote:
only now I realize that if we have the do_get/do_put overloads for
long
long types always enabled, then most probably the issue above can be
trivially
fixed by casting to unsigned long long instead of unsigned long...
On second thought, probably the input half of the problem isn't so
simple: on a
machine with sizeof(long long) > sizeof(void*) we end up accepting pointers
too big... Hummm...
Paolo.