[Python-checkins] python/dist/src/Modules datetimemodule.c,1.6,1.7
Tim Peters
tim.one@comcast.net
Wed, 18 Dec 2002 23:30:03 -0500
[nnorwitz@users.sourceforge.net]
> Update of /cvsroot/python/python/dist/src/Modules
> In directory sc8-pr-cvs1:/tmp/cvs-serv7742/Modules
>
> Modified Files:
> datetimemodule.c
> Log Message:
> Fix another long vs int mismatch. test_datetime now passes on alpha
>
> Index: datetimemodule.c
> ===================================================================
> RCS file: /cvsroot/python/python/dist/src/Modules/datetimemodule.c,v
> retrieving revision 1.6
> retrieving revision 1.7
> diff -C2 -d -r1.6 -r1.7
> *** datetimemodule.c 19 Dec 2002 01:44:38 -0000 1.6
> --- datetimemodule.c 19 Dec 2002 02:30:56 -0000 1.7
> ***************
> *** 1909,1919 ****
>
> static PyMemberDef delta_members[] = {
> ! {"days", T_LONG, OFFSET(days), READONLY,
> PyDoc_STR("Number of days.")},
And s/T_LONG/T_INT/g.
Good catch, Neal! There was an unmaintainable mish-mash of ints and longs
in the code, which I tried to repair late last week via massive edits to get
rid of all the longs. Alas, "T_LONG" isn't something I looked for. I now
pronounce the code bug-free <wink>.