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 99adfd3563..d5eff4b90a 100644
--- a/ext/calendar/cal_unix.c
+++ b/ext/calendar/cal_unix.c
@@ -45,7 +45,7 @@ PHP_FUNCTION(unixtojd)
RETURN_FALSE;
}
- RETURN_LONG(GregorianToSdn(ta->tm_year+1900, ta->tm_mon+1, ta->tm_mday));
+ RETURN_INT(GregorianToSdn(ta->tm_year+1900, ta->tm_mon+1, ta->tm_mday));
}
/* }}} */
@@ -64,7 +64,7 @@ PHP_FUNCTION(jdtounix)
RETURN_FALSE;
}
- RETURN_LONG(uday * 24 * 3600);
+ RETURN_INT(uday * 24 * 3600);
}
/* }}} */