diff options
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -863,6 +863,9 @@ rb_localtime_r(const time_t *tp, struct tm *result) static struct tm * rb_localtime_r2(const time_t *t, struct tm *result) { +#if defined __APPLE__ && defined __LP64__ + if (*t != (time_t)(int)*t) return NULL; +#endif result = rb_localtime_r(t, result); #if defined(HAVE_MKTIME) && defined(LOCALTIME_OVERFLOW_PROBLEM) if (result) { |