[Python-checkins] python/nondist/sandbox/datetime obj_delta.c,1.10,1.11

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sun, 01 Dec 2002 16:41:35 -0800


Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv1720

Modified Files:
	obj_delta.c 
Log Message:
accum():  skip some of the expensive stuff when a keyword arg is a float,
but is really just an integer in float format.


Index: obj_delta.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/obj_delta.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** obj_delta.c	2 Dec 2002 00:32:22 -0000	1.10
--- obj_delta.c	2 Dec 2002 00:41:33 -0000	1.11
***************
*** 397,400 ****
--- 397,402 ----
  			return NULL;
  
+ 		if (fracpart == 0.0)
+ 			return sum;
  		/* So far we've lost no information.  Dealing with the
  		 * fractional part requires float arithmetic, and may