Integer literal 0x8000000000000000 interpretted as 0x80000000000000c0 #4435
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
Issue
pylance seems to have trouble with an unsigned 64 bit literal. Notice the value it is interpreting is 0x80000000000000c0 (9223372036854776000)
Environment data
Pylance language server 2023.1.10 (pyright bbf0ae7)
Ubuntu 22.04.1 LTS
VS Code
Version: 1.74.2
Commit: e8a3071ea4344d9d48ef8a4df2c097372b0c5161
Date: 2022-12-20T10:27:19.253Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Linux x64 5.15.0-57-generic
Sandboxed: No
Python 3.10.6
Code Snippet
Expected behavior
Not identified as an error
Actual behavior
Error reported:
Expression of type "Literal[9223372036854776000]" cannot be assigned to declared type "Literal[9223372036854775808]"
"Literal[9223372036854776000]" cannot be assigned to type "Literal[9223372036854775808]"PylancereportGeneralTypeIssues
Logs
The text was updated successfully, but these errors were encountered: