[Python-checkins] python/nondist/sandbox/datetime obj_datetime.c,1.57,1.58

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sat, 14 Dec 2002 19:19:43 -0800


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

Modified Files:
	obj_datetime.c 
Log Message:
I can't test it, but timeval.tv_usec may be declared long on some systems,
so cast it to int.


Index: obj_datetime.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/obj_datetime.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** obj_datetime.c	14 Dec 2002 18:01:11 -0000	1.57
--- obj_datetime.c	15 Dec 2002 03:19:41 -0000	1.58
***************
*** 131,135 ****
  	gettimeofday(&t, (struct timezone *)NULL);
  #endif
! 	return datetime_from_timet_and_us(cls, f, t.tv_sec, t.tv_usec);
  
  #else	/* ! HAVE_GETTIMEOFDAY */
--- 131,135 ----
  	gettimeofday(&t, (struct timezone *)NULL);
  #endif
! 	return datetime_from_timet_and_us(cls, f, t.tv_sec, (int)t.tv_usec);
  
  #else	/* ! HAVE_GETTIMEOFDAY */