aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-12-12 19:20:01 -0500
committerB. Watson <urchlay@slackware.uk>2025-12-12 19:23:45 -0500
commit8f39b42f8feee7d009918bf3190be97fec4ca0cc (patch)
treea1e6addbd8626a87c48c19349fa7cf0b1bd206d1 /src
parentc0bc883bcfca5791ea64d488caf359a2c8de4360 (diff)
downloadalftools-8f39b42f8feee7d009918bf3190be97fec4ca0cc.tar.gz
crunch.c: Comment nitpick.
Diffstat (limited to 'src')
-rw-r--r--src/crunch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/crunch.c b/src/crunch.c
index 2755248..dcf3901 100644
--- a/src/crunch.c
+++ b/src/crunch.c
@@ -9,7 +9,10 @@
#include "u816.h"
#include "crunch.h"
#include "self.h"
+
+#ifndef APPEND_BIT
#include "bytorder.h"
+#endif
#define INITIAL_BITS 9
#define MAX_BITS 12
@@ -159,7 +162,7 @@ void store_token(int tok) {
}
/* align token so, no matter what its size (9 thru 12),
- its top bit is at bit 23 of a 32-bit int. */
+ its top bit is at bit (23 - out_bitpos) of a 32-bit int. */
ui2bytes.ui = tok << ((12 - out_bitpos) + shiftamt);
/* always append 12 bits (it's quicker to do that than have