[PATCH 2/2] bugfix: make ss-diff correctly handle tab expansion
Julius Plenz
plenz at cis.fu-berlin.de
Tue Oct 30 18:52:38 CET 2012
Hi, Jason!
* Jason A. Donenfeld <Jason at zx2c4.com> [2012-10-30 18:28]:
> > len % 8 == 0 ? 8 : (8 - len % 8)
> if len % 8 == 0,
> 8
> so the original formula holds
You are right. If 0 <= n < 8, then 8 - n is between 1 and 8, which is
what we want. If I see correctly, we can just drop the line that
strcat's the one space and thus repair the error?
Julius
P.S.: I'm a mathematician, you see, I have troubles with numbers
bigger than two. They are so confusing. ;-)
More information about the CGit
mailing list