We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When rshift a int in class, it may overflow. Same code in Linux no problem.
class Test(object): def __init__(self) -> None: self.v = 0 def values(self) -> list[int]: _v = [0] * 4 _v[0] = self.v _v[1] = self.v >> 8 _v[2] = self.v >> 32 _v[3] = self.v >> 40 return _v
t = Test() t.v = 1 print(t.values())
in pure python, it shows [1, 0, 0, 0] in cython, it shows [1, 0, 1, 0]
windows
3.11
3.0.10
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When rshift a int in class, it may overflow. Same code in Linux no problem.
Code to reproduce the behaviour:
Expected behaviour
in pure python, it shows [1, 0, 0, 0]
in cython, it shows [1, 0, 1, 0]
OS
windows
Python version
3.11
Cython version
3.0.10
Additional context
No response
The text was updated successfully, but these errors were encountered: