summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-08-10 21:10:46 (GMT)
committerGitHub <noreply@github.com>2023-08-10 21:10:46 (GMT)
commit202efe1a3bcd499f3bf17bd953c6d36d47747e78 (patch)
treefcfc5fbb296c482aa22f7cd57c7efcf398dea147 /Tools
parentfb08b7905eaf67902a89eeec0f8c1aa5ee0c7ea5 (diff)
downloadcpython-202efe1a3bcd499f3bf17bd953c6d36d47747e78.zip
cpython-202efe1a3bcd499f3bf17bd953c6d36d47747e78.tar.gz
cpython-202efe1a3bcd499f3bf17bd953c6d36d47747e78.tar.bz2
[3.11] Fix the long64 reader in umarshal.py (GH-107828) (GH-107850)
(cherry picked from commit 50bbc56009ae7303d2482f28eb62f2603664b58f) Co-authored-by: Martin DeMello <martindemello@gmail.com>
Diffstat (limited to 'Tools')
-rw-r--r--Tools/scripts/umarshal.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/scripts/umarshal.py b/Tools/scripts/umarshal.py
index f61570c..e05d93c 100644
--- a/Tools/scripts/umarshal.py
+++ b/Tools/scripts/umarshal.py
@@ -125,10 +125,10 @@ class Reader:
x |= buf[1] << 8
x |= buf[2] << 16
x |= buf[3] << 24
- x |= buf[1] << 32
- x |= buf[1] << 40
- x |= buf[1] << 48
- x |= buf[1] << 56
+ x |= buf[4] << 32
+ x |= buf[5] << 40
+ x |= buf[6] << 48
+ x |= buf[7] << 56
x |= -(x & (1<<63)) # Sign-extend
return x