[Python-checkins] python/nondist/sandbox/datetime obj_time.c,1.16,1.17
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Sat, 14 Dec 2002 08:53:16 -0800
Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv8154
Modified Files:
obj_time.c
Log Message:
Dang, it's hard to keep int-vs-long straight here. I'm sorely tempted
to change all instances of one to the other.
Index: obj_time.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/obj_time.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** obj_time.c 14 Dec 2002 16:50:16 -0000 1.16
--- obj_time.c 14 Dec 2002 16:53:14 -0000 1.17
***************
*** 223,231 ****
&minute);
if (0 <= hour && hour < 24)
! temp = new_time(hour, minute,
TIME_GET_SECOND(self),
TIME_GET_MICROSECOND(self));
else
! temp = Py_BuildValue("iiii",
hour, minute,
TIME_GET_SECOND(self),
--- 223,231 ----
&minute);
if (0 <= hour && hour < 24)
! temp = new_time((int)hour, (int)minute,
TIME_GET_SECOND(self),
TIME_GET_MICROSECOND(self));
else
! temp = Py_BuildValue("llii",
hour, minute,
TIME_GET_SECOND(self),