Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BITPOS example is incorrect #18

Open
opatomic opened this issue Oct 26, 2022 · 1 comment
Open

BITPOS example is incorrect #18

opatomic opened this issue Oct 26, 2022 · 1 comment

Comments

@opatomic
Copy link

The example contains incorrect results at https://redis.io/commands/bitpos/

In my browser (firefox), the webpage shows:

redis> SET mykey "\x00\xff\xf0"
"OK"
...
redis> BITPOS mykey 1 7 15 BIT
(integer) 9

However, the expected result from the BITPOS command is:
(integer) 8
which was returned by redis-server v7.0.5

@itamarhaber itamarhaber transferred this issue from redis/redis-doc Oct 31, 2022
@itamarhaber
Copy link
Member

Hi @opatomic

Thanks for reporting this issue. There appears to be a mess around the logic that tries to handle bit operations in this app :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants