Commit 68c26c47 authored by Tres Seaver's avatar Tres Seaver

Merge pull request #39 from NextThought/issue38

Fix #38 by returning the correct type from TimeStamp_hash.
parents 1df6a6ed edd3e637
``persistent`` Changelog
========================
4.2.1 (TBD)
-----------
- Fix the hashcode of C ``TimeStamp`` objects on 64-bit Python 3 on
Windows.
4.2.0 (2016-05-05)
------------------
......
......@@ -6,8 +6,11 @@ environment:
- python : 27
- python : 27-x64
- python : 33
- python : 33-x64
- python : 34
- python : 35
- python : 34-x64
- python : 35
- python : 35-x64
install:
- "SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH%"
......
......@@ -152,7 +152,12 @@ TimeStamp_richcompare(TimeStamp *self, TimeStamp *other, int op)
return result;
}
#ifdef PY3K
static Py_hash_t
#else
static long
#endif
TimeStamp_hash(TimeStamp *self)
{
register unsigned char *p = (unsigned char *)self->data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment