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]

Re: [Patch] Don't check for __ilen > 0 in _M_convert_to_external


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


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