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
dec2df3d
Commit
dec2df3d
authored
Sep 09, 2016
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dummy macro
parent
a785c87d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Include/pydtrace.h
Include/pydtrace.h
+1
-1
Modules/_datetimemodule.c
Modules/_datetimemodule.c
+2
-1
No files found.
Include/pydtrace.h
View file @
dec2df3d
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
/* Without DTrace, compile to nothing. */
/* Without DTrace, compile to nothing. */
#define PyDTrace_LINE(arg0, arg1, arg2
, arg3
) do ; while (0)
#define PyDTrace_LINE(arg0, arg1, arg2) do ; while (0)
#define PyDTrace_FUNCTION_ENTRY(arg0, arg1, arg2) do ; while (0)
#define PyDTrace_FUNCTION_ENTRY(arg0, arg1, arg2) do ; while (0)
#define PyDTrace_FUNCTION_RETURN(arg0, arg1, arg2) do ; while (0)
#define PyDTrace_FUNCTION_RETURN(arg0, arg1, arg2) do ; while (0)
#define PyDTrace_GC_START(arg0) do ; while (0)
#define PyDTrace_GC_START(arg0) do ; while (0)
...
...
Modules/_datetimemodule.c
View file @
dec2df3d
...
@@ -2841,9 +2841,10 @@ static PyObject *date_getstate(PyDateTime_Date *self);
...
@@ -2841,9 +2841,10 @@ static PyObject *date_getstate(PyDateTime_Date *self);
static
Py_hash_t
static
Py_hash_t
date_hash
(
PyDateTime_Date
*
self
)
date_hash
(
PyDateTime_Date
*
self
)
{
{
if
(
self
->
hashcode
==
-
1
)
if
(
self
->
hashcode
==
-
1
)
{
self
->
hashcode
=
generic_hash
(
self
->
hashcode
=
generic_hash
(
(
unsigned
char
*
)
self
->
data
,
_PyDateTime_DATE_DATASIZE
);
(
unsigned
char
*
)
self
->
data
,
_PyDateTime_DATE_DATASIZE
);
}
return
self
->
hashcode
;
return
self
->
hashcode
;
}
}
...
...
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