Re: base85: Two tiny fixes
- From
- Andreas Gruenbacher <agruen@suse.de>
- Date
- Jan 8, 2010, 13:02 UTC
- Message-ID
- <201001081402.02476.agruen@suse.de>
- In-Reply-To
- <alpine.LFD.2.00.1001071253400.21025@xanadu.home>
On Thursday 07 January 2010 18:58:01 Nicolas Pitre wrote:
> ACK. Please post them to this list.
Okay, done.
Show 8 quoted lines
> On Thu, 7 Jan 2010, Andreas Gruenbacher wrote: > > There is another little oddity in the way the de85 table is set up: 0 > > indicates an invalid entry; to avoid this from clashing with a valid entry, > > valid entries are incremented by one and decremented again while decoding. > > This leads to slightly worse code than using a negative number to indicate > > invalid values (and avoiding to increment/decrement). > > You can make a patch to modify that as well if you wish.
Nah, it's not worth the noise.
> And in that case don't forget to make de85 explicitly signed as a char is > unsigned by default on some platforms.
I would have forgotten this; thanks for pointing it out!
Thanks, Andreas