summaryrefslogtreecommitdiffhomepage
path: root/src/bitbuf.h
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-06-10 16:44:19 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2023-06-10 16:51:02 +0100
commit1c4318331663b152b0b298bd2c9e5c971506a86b (patch)
treea402681cb84b491819ba5018525c16340110fd4d /src/bitbuf.h
parent602a18977d500ad068fd63fbedcafb630c29ee72 (diff)
Prune some comments and tidy up other minor things
Diffstat (limited to 'src/bitbuf.h')
-rw-r--r--src/bitbuf.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bitbuf.h b/src/bitbuf.h
index 8700af3..a2ee60f 100644
--- a/src/bitbuf.h
+++ b/src/bitbuf.h
@@ -1,5 +1,5 @@
/*
- * Copyright © 2021 Michael Smith <mikesmiffy128@gmail.com>
+ * Copyright © 2023 Michael Smith <mikesmiffy128@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -49,8 +49,7 @@ static inline void bitbuf_appendbits(struct bitbuf *bb, bitbuf_cell x,
// OR into the existing cell (lower bits were already set!)
bb->buf_as_cells[idx] |= x << shift;
// assign the next cell (that also clears the upper bits for the next OR)
- // note: if nbits fits in the first cell, this just 0s the next cell, which
- // is absolutely fine
+ // if nbits fits in the first cell, this zeros the next cell, which is fine
bb->buf_as_cells[idx + 1] = x >> (bitbuf_cell_bits - shift);
bb->curbit += nbits;
}