Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
82cb1243
Commit
82cb1243
authored
Sep 10, 2016
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Plain Diff
Issue #25221: merge from 3.5.
parents
81994006
36820dd5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Misc/NEWS
Misc/NEWS
+3
-0
Objects/longobject.c
Objects/longobject.c
+2
-1
No files found.
Misc/NEWS
View file @
82cb1243
...
...
@@ -10,6 +10,9 @@ What's New in Python 3.6.0 beta 1
Core and Builtins
-----------------
- Issue #25221: Fix corrupted result from PyLong_FromLong(0) when Python
is compiled with NSMALLPOSINTS = 0.
- Issue #27080: Implement formatting support for PEP 515. Initial patch
by Chris Angelico.
...
...
Objects/longobject.c
View file @
82cb1243
...
...
@@ -234,7 +234,7 @@ PyLong_FromLong(long ival)
unsigned
long
abs_ival
;
unsigned
long
t
;
/* unsigned so >> doesn't propagate sign bit */
int
ndigits
=
0
;
int
sign
=
1
;
int
sign
;
CHECK_SMALL_INT
(
ival
);
...
...
@@ -246,6 +246,7 @@ PyLong_FromLong(long ival)
}
else
{
abs_ival
=
(
unsigned
long
)
ival
;
sign
=
ival
==
0
?
0
:
1
;
}
/* Fast path for single-digit ints */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment