[Python-checkins] python/nondist/sandbox/datetime datetime.c,1.24,1.25
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Mon, 25 Nov 2002 21:17:29 -0800
Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv27304
Modified Files:
datetime.c
Log Message:
Typo repair.
Index: datetime.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/datetime.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** datetime.c 26 Nov 2002 05:11:25 -0000 1.24
--- datetime.c 26 Nov 2002 05:17:27 -0000 1.25
***************
*** 18,22 ****
PyObject_HEAD
long hashcode;
! long days;
long seconds; /* 0 <= seconds < 24*3600 is invariant */
long microseconds; /* 0 <= microseconds < 1000000 is invariant */
--- 18,22 ----
PyObject_HEAD
long hashcode;
! long days; /* this may be negative */
long seconds; /* 0 <= seconds < 24*3600 is invariant */
long microseconds; /* 0 <= microseconds < 1000000 is invariant */
***************
*** 66,74 ****
/* Compute Python divmod(x, y), returning the quotient and storing the
* remainder into *r. The quotient is the floor of x/y, and that's
! * the real point of this. C will probably truncate instead (C89
* requires truncation; C89 left it implementation-defined).
* Simplification: we *require* that y > 0 here. That's appropriate
* for all the uses made of it. This simplifies the code and makes
! * the overflow case impossible.
*/
static long
--- 66,75 ----
/* Compute Python divmod(x, y), returning the quotient and storing the
* remainder into *r. The quotient is the floor of x/y, and that's
! * the real point of this. C will probably truncate instead (C99
* requires truncation; C89 left it implementation-defined).
* Simplification: we *require* that y > 0 here. That's appropriate
* for all the uses made of it. This simplifies the code and makes
! * the overflow case impossible (divmod(LONG_MIN, -1) is the only
! * overflow case).
*/
static long