summaryrefslogtreecommitdiff
path: root/ext/calendar/cal_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/calendar/cal_unix.c')
-rw-r--r--ext/calendar/cal_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/calendar/cal_unix.c b/ext/calendar/cal_unix.c
index 2bf9b2454c..5d7f99a996 100644
--- a/ext/calendar/cal_unix.c
+++ b/ext/calendar/cal_unix.c
@@ -40,7 +40,7 @@ PHP_FUNCTION(unixtojd)
if(myargc==1) {
convert_to_long(timestamp);
- t = timestamp->value.lval;
+ t = Z_LVAL_P(timestamp);
} else {
t = time(NULL);
}
@@ -69,7 +69,7 @@ PHP_FUNCTION(jdtounix)
convert_to_long(jday);
- uday = jday->value.lval - 2440588 /* J.D. of 1.1.1970 */;
+ uday = Z_LVAL_P(jday) - 2440588 /* J.D. of 1.1.1970 */;
if(uday<0) RETURN_FALSE; /* before beginning of unix epoch */
if(uday>24755) RETURN_FALSE; /* behind end of unix epoch */