summaryrefslogtreecommitdiff
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2016-09-17 19:44:13 +0100
committerMark Dickinson <dickinsm@gmail.com>2016-09-17 19:44:13 +0100
commitfba121fe9d8fa71f5f6eea465165dbda659915ad (patch)
tree0f707ebbed23a930928db3e1d3bc8b28e7b5c315 /Objects/longobject.c
parent92ca535626c676499e807b0e7729280cfb5eb67a (diff)
downloadcpython-git-fba121fe9d8fa71f5f6eea465165dbda659915ad.tar.gz
Issue #27441: Remove some redundant assignments to ob_size in longobject.c. Thanks Oren Milman.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 0822f9bcb3..0ecbab1fba 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -315,7 +315,6 @@ PyLong_FromUnsignedLong(unsigned long ival)
v = _PyLong_New(ndigits);
if (v != NULL) {
digit *p = v->ob_digit;
- Py_SIZE(v) = ndigits;
while (ival) {
*p++ = (digit)(ival & PyLong_MASK);
ival >>= PyLong_SHIFT;
@@ -1102,7 +1101,6 @@ PyLong_FromUnsignedLongLong(unsigned long long ival)
v = _PyLong_New(ndigits);
if (v != NULL) {
digit *p = v->ob_digit;
- Py_SIZE(v) = ndigits;
while (ival) {
*p++ = (digit)(ival & PyLong_MASK);
ival >>= PyLong_SHIFT;