mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
fix dummy macro
This commit is contained in:
parent
a785c87d6e
commit
dec2df3df3
2 changed files with 3 additions and 2 deletions
|
@ -2841,9 +2841,10 @@ static PyObject *date_getstate(PyDateTime_Date *self);
|
|||
static Py_hash_t
|
||||
date_hash(PyDateTime_Date *self)
|
||||
{
|
||||
if (self->hashcode == -1)
|
||||
if (self->hashcode == -1) {
|
||||
self->hashcode = generic_hash(
|
||||
(unsigned char *)self->data, _PyDateTime_DATE_DATASIZE);
|
||||
}
|
||||
|
||||
return self->hashcode;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue