ethereum/py-snappy

incorrect comparison

Open

#18 opened on Feb 1, 2020

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Python (9 forks)auto 404
good first issue

Repository metrics

Stars
 (18 stars)
PR merge metrics
 (PR metrics pending)

Description

https://github.com/ethereum/py-snappy/blob/f91082fa1498ed919ef26bd853a4552675c9665a/py_snappy/main.py#L235

your use of cute "C244" constants tripped you up! the comparisons should be to 1 << 8, 1 << 16, and 1 << 24

Contributor guide