diff options
Diffstat (limited to 'src/crunch.c')
| -rw-r--r-- | src/crunch.c | 5 |
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 |
