This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] Don't check for __ilen > 0 in _M_convert_to_external
- From: Nathan Myers <ncm-nospam at cantrip dot org>
- To: libstdc++ at gcc dot gnu dot org
- Date: Thu, 29 May 2003 18:49:27 -0700
- Subject: Re: [Patch] Don't check for __ilen > 0 in _M_convert_to_external
- References: <3ED6827F.9070706@unitus.it>
On Thu, May 29, 2003 at 11:58:23PM +0200, Paolo Carlini wrote:
> Hi,
>
> I mean to apply the below tomorrow, if nobody complains.
>
> Basically:
> -1 All the uses of _M_convert_to_external are guaranteed __ilen > 0.
> -2 If it were to happen that __ilen == 0 and always_noconv() == true
> it is not ok to branch to the 'else'.
> -3 xsputn(*, 0) (that is, write(*, *, 0)), in case, works perfectly ok.
>
> Tested x86-linux.
Good work, Paolo!
Nathan Myers
ncm-nospam@cantrip.org