This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
ints in parallel code
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Cc: Johannes Singler <singler at ira dot uka dot de>
- Date: Wed, 04 Nov 2009 15:00:17 +0100
- Subject: ints in parallel code
Hi Johannes,
today was going through the parallel code to do some more or less
formatting and uglifications fixes, when I noticed something potentially
much more serious: I'm seeing many plain ints around, also for things
which look like indexes in data, differences of iterators, things like
that. That would be not 64-bit clean, a rather serious issue these days,
but automatically replacing longs would be in general essentially enough
to fix the problem (ptrdiff_t can be more correct in some cases). Can
you look a bit into this?
Thanks,
Paolo.