mirror of https://github.com/python/cpython
fix dummy macro
This commit is contained in:
parent
a785c87d6e
commit
dec2df3df3
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue