This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] | |
On 08 Apr 2015 11:41, James Lemke wrote: > + block_sz = i - req_sz; > + if (block_sz > 0xff) > + block_sz = 0xff; these three lines can be written: block_sz = min (i - req_sz, 0xff); > + /* Don't allow the magic byte to appear in the chain of length bytes. > + For the following to work, magicbyte() cannot return 0x01. */ GNU style says to omit the () in comments > + m_ptr[i] = (unsigned char) block_sz; i wonder if the cast is really needed ... they're both unsigned already otherwise patch looks fine to me -mike
Attachment:
signature.asc
Description: Digital signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |