summaryrefslogtreecommitdiff
path: root/ext/calendar/jewish.c
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@php.net>2002-02-02 19:27:33 +0000
committerSebastian Bergmann <sebastian@php.net>2002-02-02 19:27:33 +0000
commit4a2f0316e162f956fa798f5a154bb1308a5f7519 (patch)
tree48dc34bf482d3fa437db3aacfa808f65b78ef91d /ext/calendar/jewish.c
parent86469a0dfb331c04cef7216b60644c61c12eba3e (diff)
downloadphp-git-4a2f0316e162f956fa798f5a154bb1308a5f7519.tar.gz
Fix a warning.
Diffstat (limited to 'ext/calendar/jewish.c')
-rw-r--r--ext/calendar/jewish.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/calendar/jewish.c b/ext/calendar/jewish.c
index d93eb4c282..504f3c2d93 100644
--- a/ext/calendar/jewish.c
+++ b/ext/calendar/jewish.c
@@ -267,7 +267,7 @@
#define HALAKIM_PER_LUNAR_CYCLE ((29 * HALAKIM_PER_DAY) + 13753)
#define HALAKIM_PER_METONIC_CYCLE (HALAKIM_PER_LUNAR_CYCLE * (12 * 19 + 7))
-#define SDN_OFFSET 347997
+#define JEWISH_SDN_OFFSET 347997
#define NEW_MOON_OF_CREATION 31524
#define SUNDAY 0
@@ -497,13 +497,13 @@ void SdnToJewish(
int tishri1After;
int yearLength;
- if (sdn <= SDN_OFFSET) {
+ if (sdn <= JEWISH_SDN_OFFSET) {
*pYear = 0;
*pMonth = 0;
*pDay = 0;
return;
}
- inputDay = sdn - SDN_OFFSET;
+ inputDay = sdn - JEWISH_SDN_OFFSET;
FindTishriMolad(inputDay, &metonicCycle, &metonicYear, &day, &halakim);
tishri1 = Tishri1(metonicYear, day, halakim);
@@ -728,7 +728,7 @@ long int JewishToSdn(
return (0);
}
}
- return (sdn + SDN_OFFSET);
+ return (sdn + JEWISH_SDN_OFFSET);
}
/*