Skip to content

Why 88 is used as a threshold. 89 should be fit perfectly #4

@ennoausberlin

Description

@ennoausberlin

Hello, I just try to understand the 88 threshold in the encoding/decoding procedure.

n += 13 if (v & 8191) > 88 else 14

If I calculate 89*91+91 = 8190 I am still in the range of 13 bits. 0-8191. So for me 89 would fit better. 90 as second character of course needs 14 bits. Do I run into an off-by-one-error here? I am puzzled. Can you elaborate this, please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions