summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-11-03 14:15:56 (GMT)
committerGitHub <noreply@github.com>2020-11-03 14:15:56 (GMT)
commit212d32f45c91849c17a82750df1ac498d63976be (patch)
tree6b83063d1eed1853a1f36f851900036391afa405 /Lib
parent74b4eda98b650245216292ace8d7e30d3997baa7 (diff)
downloadcpython-212d32f45c91849c17a82750df1ac498d63976be.zip
cpython-212d32f45c91849c17a82750df1ac498d63976be.tar.gz
cpython-212d32f45c91849c17a82750df1ac498d63976be.tar.bz2
bpo-42249: Fix writing binary Plist files larger than 4 GiB. (GH-23121)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/plistlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/plistlib.py b/Lib/plistlib.py
index 83b214e..2eeebe4 100644
--- a/Lib/plistlib.py
+++ b/Lib/plistlib.py
@@ -611,7 +611,7 @@ def _count_to_size(count):
elif count < 1 << 16:
return 2
- elif count << 1 << 32:
+ elif count < 1 << 32:
return 4
else: