diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-10 00:46:24 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-10 00:46:24 (GMT) |
commit | dec2df3df321c3d6bed045d3125564006942b3d9 (patch) | |
tree | c469062d58641de4cb52859f9b8754cce4132e2e /Modules/_datetimemodule.c | |
parent | a785c87d6eacbed81543a8afe3cb098fabb9610a (diff) | |
download | cpython-dec2df3df321c3d6bed045d3125564006942b3d9.zip cpython-dec2df3df321c3d6bed045d3125564006942b3d9.tar.gz cpython-dec2df3df321c3d6bed045d3125564006942b3d9.tar.bz2 |
fix dummy macro
Diffstat (limited to 'Modules/_datetimemodule.c')
-rw-r--r-- | Modules/_datetimemodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index 6597cb7..13c9d2f 100644 --- a/Modules/_datetimemodule.c +++ b/Modules/_datetimemodule.c @@ -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; } |