diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-12-19 02:30:56 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-12-19 02:30:56 (GMT) |
commit | dfb808676098bbb711e98ef3388c30c3eb6f0c39 (patch) | |
tree | 0b2eadc8d5e572f666d37c28e11803498c1547b9 /Modules | |
parent | 0b0f41cf1f3928e149d59c512b8a9ad8f08b456a (diff) | |
download | cpython-dfb808676098bbb711e98ef3388c30c3eb6f0c39.zip cpython-dfb808676098bbb711e98ef3388c30c3eb6f0c39.tar.gz cpython-dfb808676098bbb711e98ef3388c30c3eb6f0c39.tar.bz2 |
Fix another long vs int mismatch. test_datetime now passes on alpha
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/datetimemodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index b445284..3aab3ad 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c @@ -1908,13 +1908,13 @@ delta_reduce(PyDateTime_Delta* self) #define OFFSET(field) offsetof(PyDateTime_Delta, field) static PyMemberDef delta_members[] = { - {"days", T_LONG, OFFSET(days), READONLY, + {"days", T_INT, OFFSET(days), READONLY, PyDoc_STR("Number of days.")}, - {"seconds", T_LONG, OFFSET(seconds), READONLY, + {"seconds", T_INT, OFFSET(seconds), READONLY, PyDoc_STR("Number of seconds (>= 0 and less than 1 day).")}, - {"microseconds", T_LONG, OFFSET(microseconds), READONLY, + {"microseconds", T_INT, OFFSET(microseconds), READONLY, PyDoc_STR("Number of microseconds (>= 0 and less than 1 second).")}, {NULL} }; |