]> granicus.if.org Git - python/commitdiff
Fix another long vs int mismatch. test_datetime now passes on alpha
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 19 Dec 2002 02:30:56 +0000 (02:30 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 19 Dec 2002 02:30:56 +0000 (02:30 +0000)
Modules/datetimemodule.c

index b445284971c2306c19a69ccd56f9a522cd1816d9..3aab3adf1152a73b84438d2c3db2938225799b88 100644 (file)
@@ -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}
 };