diff options
| author | Sebastian Bergmann <sebastian@php.net> | 2002-02-02 19:27:33 +0000 |
|---|---|---|
| committer | Sebastian Bergmann <sebastian@php.net> | 2002-02-02 19:27:33 +0000 |
| commit | 4a2f0316e162f956fa798f5a154bb1308a5f7519 (patch) | |
| tree | 48dc34bf482d3fa437db3aacfa808f65b78ef91d /ext/calendar/gregor.c | |
| parent | 86469a0dfb331c04cef7216b60644c61c12eba3e (diff) | |
| download | php-git-4a2f0316e162f956fa798f5a154bb1308a5f7519.tar.gz | |
Fix a warning.
Diffstat (limited to 'ext/calendar/gregor.c')
| -rw-r--r-- | ext/calendar/gregor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/calendar/gregor.c b/ext/calendar/gregor.c index ef0a01ea66..f48950901a 100644 --- a/ext/calendar/gregor.c +++ b/ext/calendar/gregor.c @@ -128,7 +128,7 @@ #include "sdncal.h" -#define SDN_OFFSET 32045 +#define GREGOR_SDN_OFFSET 32045 #define DAYS_PER_5_MONTHS 153 #define DAYS_PER_4_YEARS 1461 #define DAYS_PER_400_YEARS 146097 @@ -152,7 +152,7 @@ void SdnToGregorian( *pDay = 0; return; } - temp = (sdn + SDN_OFFSET) * 4 - 1; + temp = (sdn + GREGOR_SDN_OFFSET) * 4 - 1; /* Calculate the century (year/100). */ century = temp / DAYS_PER_400_YEARS; @@ -227,7 +227,7 @@ long int GregorianToSdn( + ((year % 100) * DAYS_PER_4_YEARS) / 4 + (month * DAYS_PER_5_MONTHS + 2) / 5 + inputDay - - SDN_OFFSET); + - GREGOR_SDN_OFFSET); } char *MonthNameShort[13] = |
