diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-14 08:10:22 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-16 00:46:33 -0800 |
commit | 82fc2f9628e0f1dbd9010e0146ff63832e4a77a1 (patch) | |
tree | 4b862075fca830a39080b536272bd7fe0713c651 /src/helper/binarybuffer.c | |
parent | b695cb75220100cd9bbfaec5bd1740958454130d (diff) |
binarybuffer: fix whitespace related issues
Add inter-operator whitespace. Improve existing documentation.
Diffstat (limited to 'src/helper/binarybuffer.c')
-rw-r--r-- | src/helper/binarybuffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helper/binarybuffer.c b/src/helper/binarybuffer.c index fdfcf715..d813ecf5 100644 --- a/src/helper/binarybuffer.c +++ b/src/helper/binarybuffer.c @@ -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++; } |