binarybuffer: fix whitespace related issues

Add inter-operator whitespace.  Improve existing documentation.
This commit is contained in:
Zachary T Welch
2009-11-14 08:10:22 -08:00
parent b695cb7522
commit 82fc2f9628
2 changed files with 18 additions and 23 deletions

View File

@@ -145,10 +145,10 @@ uint8_t* buf_set_buf(const uint8_t *src, int src_start, uint8_t *dst, int dst_st
for (i = 0; i < len; i++)
{
if (((src[src_idx/8] >> (src_idx % 8)) & 1) == 1)
dst[dst_idx/8] |= 1 << (dst_idx%8);
if (((src[src_idx / 8] >> (src_idx % 8)) & 1) == 1)
dst[dst_idx / 8] |= 1 << (dst_idx % 8);
else
dst[dst_idx/8] &= ~(1 << (dst_idx%8));
dst[dst_idx / 8] &= ~(1 << (dst_idx % 8));
dst_idx++;
src_idx++;
}