mirror of git://sourceware.org/git/glibc.git
Update.
* time/getdate.c (check_mday): tm_mon contains values from 0 to 11, not 1 to 12.
This commit is contained in:
parent
ff7059bfe8
commit
51c68755af
|
|
@ -1,5 +1,8 @@
|
||||||
1998-12-18 Ulrich Drepper <drepper@cygnus.com>
|
1998-12-18 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* time/getdate.c (check_mday): tm_mon contains values from 0 to 11,
|
||||||
|
not 1 to 12.
|
||||||
|
|
||||||
* manual/texinfo.tex: Update to latest version.
|
* manual/texinfo.tex: Update to latest version.
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add ipc.
|
* sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add ipc.
|
||||||
|
|
|
||||||
|
|
@ -71,24 +71,24 @@ check_mday (int year, int mon, int mday)
|
||||||
{
|
{
|
||||||
switch (mon)
|
switch (mon)
|
||||||
{
|
{
|
||||||
case 1:
|
case 0:
|
||||||
case 3:
|
case 2:
|
||||||
case 5:
|
case 4:
|
||||||
|
case 6:
|
||||||
case 7:
|
case 7:
|
||||||
case 8:
|
case 9:
|
||||||
case 10:
|
case 11:
|
||||||
case 12:
|
|
||||||
if (mday >= 1 && mday <= 31)
|
if (mday >= 1 && mday <= 31)
|
||||||
return 1;
|
return 1;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 3:
|
||||||
case 6:
|
case 5:
|
||||||
case 9:
|
case 8:
|
||||||
case 11:
|
case 10:
|
||||||
if (mday >= 1 && mday <= 30)
|
if (mday >= 1 && mday <= 30)
|
||||||
return 1;
|
return 1;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 1:
|
||||||
if (mday >= 1 && mday < (__isleap (year) ? 29 : 28))
|
if (mday >= 1 && mday < (__isleap (year) ? 29 : 28))
|
||||||
return 1;
|
return 1;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue