diff options
| author | 2023-02-07 06:35:18 +0000 | |
|---|---|---|
| committer | 2023-02-07 06:35:18 +0000 | |
| commit | aa1ed8a06eccac43ef1f81683b5e9f1d63c43a45 (patch) | |
| tree | 324218c96deec14db5f64aedfe78e702af4daab0 /creole.c | |
| parent | test encode and decode (diff) | |
fix parse_special_byte function
Diffstat (limited to 'creole.c')
| -rw-r--r-- | creole.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -210,7 +210,7 @@ static int parse_special_byte(unsigned char c, struct word *w) if (i >= SPECIAL_CONTINUE_BYTE_NUM) return 0; - w->high_bits = (w->high_bits << i) | ((c >> (5 - i)) & mask[i]); + w->high_bits = (w->high_bits << (i + 1)) | ((c >> (5 - i)) & mask[i]); w->word = c & wordmask[i]; return 1; } |
