This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Fix test03 in ostream_inserter_arith.cc
- From: Andreas Schwab <schwab at suse dot de>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: bkoz at redhat dot com, libstdc++ at gcc dot gnu dot org, ulrich dot weigand at de dot ibm dot com
- Date: Sun, 27 Jan 2002 18:17:08 +0100
- Subject: Re: [PATCH] Fix test03 in ostream_inserter_arith.cc
- References: <3C51F666.F4C2D7D2@unitus.it> <3C520B72.5A65A1FB@unitus.it>
Paolo Carlini <pcarlini@unitus.it> writes:
|> Paolo Carlini wrote:
|>
|> > Hi,
|> >
|> > I have trivially generalized the test for the following cases: 16/32 shorts,
|> > 16/32/64 ints and 32/64 longs. Ulrich, could you please verify on your 64 bit
|> > mainframes that the fix is correct?
|> >
|> > Otherwise, would the patch (tested on i686-pc-linux-gnu) be ok?
|>
|> Sorry! I sent the wrong patch (the very first version, indeed) which does *not*
|> work (since, f.i., on i686, numeric_limits<short>::digits == 15 *not* 16).
|>
|> It is much easier to use sizeof()...
Tested on ia64-suse-linux.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."