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

key3() doesn't work correctly with __int128 #29

Open
selectany opened this issue Mar 25, 2023 · 0 comments
Open

key3() doesn't work correctly with __int128 #29

selectany opened this issue Mar 25, 2023 · 0 comments

Comments

@selectany
Copy link

To reproduce the bug you have to use Linux env.
Use 8x8 boards in Position class, so position_t is of type __int128, then try to print results like that
Position pos1, pos2; pos1.play("4848"); pos2.play("5151");; std::cout << "Key3 for sequence 4848: " << pos1.key3() << std::endl; std::cout << "Key3 for sequence 5151: " << pos2.key3() << std::endl;

The result is:
Key3 for sequence 4848: 974 Key3 for sequence 5151: 2924

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

1 participant