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
ac965ca1
Commit
ac965ca1
authored
Sep 18, 2016
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stop using Py_LL and Py_ULL
parent
41e35f37
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
86 additions
and
90 deletions
+86
-90
Include/pyport.h
Include/pyport.h
+0
-4
Include/pythread.h
Include/pythread.h
+2
-2
Modules/_datetimemodule.c
Modules/_datetimemodule.c
+1
-1
Modules/sha512module.c
Modules/sha512module.c
+83
-83
No files found.
Include/pyport.h
View file @
ac965ca1
...
...
@@ -715,10 +715,6 @@ extern pid_t forkpty(int *, char *, struct termios *, struct winsize *);
#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
#endif
/*
* Older Microsoft compilers don't support the C99 long long literal suffixes,
* so these will be defined in PC/pyconfig.h for those compilers.
*/
#ifndef Py_LL
#define Py_LL(x) x##LL
#endif
...
...
Include/pythread.h
View file @
ac965ca1
...
...
@@ -42,9 +42,9 @@ PyAPI_FUNC(int) PyThread_acquire_lock(PyThread_type_lock, int);
/* In the NT API, the timeout is a DWORD and is expressed in milliseconds */
#if defined (NT_THREADS)
#if
(Py_LL(0xFFFFFFFF) * 1000 < PY_TIMEOUT_MAX)
#if
0xFFFFFFFFLL * 1000 < PY_TIMEOUT_MAX
#undef PY_TIMEOUT_MAX
#define PY_TIMEOUT_MAX (
Py_LL(0xFFFFFFFF)
* 1000)
#define PY_TIMEOUT_MAX (
0xFFFFFFFFLL
* 1000)
#endif
#endif
...
...
Modules/_datetimemodule.c
View file @
ac965ca1
...
...
@@ -4206,7 +4206,7 @@ typedef struct tm *(*TM_FUNC)(const time_t *timer, struct tm*);
* 23 hours at 1969-09-30 13:00:00 in Kwajalein. */
static
long
long
max_fold_seconds
=
24
*
3600
;
/* NB: date(1970,1,1).toordinal() == 719163 */
static
long
long
epoch
=
Py_LL
(
719163
)
*
24
*
60
*
60
;
static
long
long
epoch
=
719163LL
*
24
*
60
*
60
;
static
long
long
utc_to_seconds
(
int
year
,
int
month
,
int
day
,
...
...
Modules/sha512module.c
View file @
ac965ca1
This diff is collapsed.
Click to expand it.
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