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
a9ed91e6
Commit
a9ed91e6
authored
Oct 21, 2019
by
Sergey Fedoseev
Committed by
Serhiy Storchaka
Oct 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-27961: Replace PY_LONG_LONG with long long. (GH-15386)
parent
919f0bc8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
Lib/test/clinic.test
Lib/test/clinic.test
+2
-2
Modules/_testcapimodule.c
Modules/_testcapimodule.c
+2
-2
PC/pyconfig.h
PC/pyconfig.h
+1
-1
Tools/clinic/clinic.py
Tools/clinic/clinic.py
+1
-1
No files found.
Lib/test/clinic.test
View file @
a9ed91e6
...
...
@@ -1269,7 +1269,7 @@ test_long_long_converter(PyObject *module, PyObject *const *args, Py_ssize_t nar
goto
exit
;
}
a
=
PyLong_AsLongLong
(
args
[
0
]);
if
(
a
==
(
PY_LONG_LONG
)
-
1
&&
PyErr_Occurred
())
{
if
(
a
==
-
1
&&
PyErr_Occurred
())
{
goto
exit
;
}
skip_optional
:
...
...
@@ -1281,7 +1281,7 @@ exit:
static
PyObject
*
test_long_long_converter_impl
(
PyObject
*
module
,
long
long
a
)
/*[clinic end generated code: output=
3e8083f3aee4f18a
input=d5fc81577ff4dd02]*/
/*[clinic end generated code: output=
7143b585d7e433e8
input=d5fc81577ff4dd02]*/
/*[clinic input]
...
...
Modules/_testcapimodule.c
View file @
a9ed91e6
...
...
@@ -4763,8 +4763,8 @@ dict_get_version(PyObject *self, PyObject *args)
version
=
dict
->
ma_version_tag
;
Py_BUILD_ASSERT
(
sizeof
(
unsigned
PY_LONG_LONG
)
>=
sizeof
(
version
));
return
PyLong_FromUnsignedLongLong
((
unsigned
PY_LONG_LONG
)
version
);
Py_BUILD_ASSERT
(
sizeof
(
unsigned
long
long
)
>=
sizeof
(
version
));
return
PyLong_FromUnsignedLongLong
((
unsigned
long
long
)
version
);
}
...
...
PC/pyconfig.h
View file @
a9ed91e6
...
...
@@ -296,7 +296,7 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
# define SIZEOF_HKEY 8
# define SIZEOF_SIZE_T 8
/* configure.ac defines HAVE_LARGEFILE_SUPPORT iff
sizeof(off_t) > sizeof(long), and sizeof(
PY_LONG_LONG
) >= sizeof(off_t).
sizeof(off_t) > sizeof(long), and sizeof(
long long
) >= sizeof(off_t).
On Win64 the second condition is not true, but if fpos_t replaces off_t
then this is true. The uses of HAVE_LARGEFILE_SUPPORT imply that Win64
should define this. */
...
...
Tools/clinic/clinic.py
View file @
a9ed91e6
...
...
@@ -3016,7 +3016,7 @@ class long_long_converter(CConverter):
goto exit;
}}}}
{paramname} = PyLong_AsLongLong({argname});
if ({paramname} ==
(PY_LONG_LONG)
-1 && PyErr_Occurred()) {{{{
if ({paramname} == -1 && PyErr_Occurred()) {{{{
goto exit;
}}}}
"""
.
format
(
argname
=
argname
,
paramname
=
self
.
name
)
...
...
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