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

'bitwise_and' not supported for int64 and int input in corner cases #119

Open
ZichangHe opened this issue Dec 27, 2024 · 0 comments
Open

Comments

@ZichangHe
Copy link

At link, self.get_cval(cvar) is np int64, (1 << idx) is int.

Errors could happen when (1 << idx) is out of 64 bit, i.e., (1 << idx) >= 9223372036854775808

Temporary solution: change link to val = int(self.get_cval(cvar)) & (1 << idx)

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