summaryrefslogtreecommitdiff
path: root/ext/date/lib/timelib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/lib/timelib.c')
-rw-r--r--ext/date/lib/timelib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/date/lib/timelib.c b/ext/date/lib/timelib.c
index bf7c55a735..65029e7d1c 100644
--- a/ext/date/lib/timelib.c
+++ b/ext/date/lib/timelib.c
@@ -176,13 +176,13 @@ void timelib_error_container_dtor(timelib_error_container *errors)
free(errors);
}
-signed long timelib_date_to_int(timelib_time *d, int *error)
+zend_long timelib_date_to_int(timelib_time *d, int *error)
{
timelib_sll ts;
ts = d->sse;
- if (ts < LONG_MIN || ts > LONG_MAX) {
+ if (ts < ZEND_LONG_MIN || ts > ZEND_LONG_MAX) {
if (error) {
*error = 1;
}
@@ -191,7 +191,7 @@ signed long timelib_date_to_int(timelib_time *d, int *error)
if (error) {
*error = 0;
}
- return (signed long) d->sse;
+ return (zend_long) d->sse;
}
void timelib_decimal_hour_to_hms(double h, int *hour, int *min, int *sec)