time.c: fixable_time_t_p is not used with MRB_NO_FLOAT; #5421

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-04-24 11:38:56 +09:00
parent 237f3339bf
commit 4b4622f711
+2
View File
@@ -226,6 +226,7 @@ typedef mrb_int mrb_sec;
(sizeof(time_t) <= 4 ? INT32_MAX : INT64_MAX) \
)
#ifndef MRB_NO_FLOAT
/* return true if time_t is fit in mrb_int */
static mrb_bool
fixable_time_t_p(time_t v)
@@ -236,6 +237,7 @@ fixable_time_t_p(time_t v)
if (MRB_INT_MIN > (mrb_int)v) return FALSE;
return TRUE;
}
#endif
static time_t
mrb_to_time_t(mrb_state *mrb, mrb_value obj, time_t *usec)