From bd050b4c1d77d958eb9fb7b0ac32f6d9120faa66 Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Sun, 11 Aug 2019 09:47:37 -0400 Subject: [PATCH] Fix implicit float conversion warning Addresses oss-fuzz/16372 --- src/sas/readstat_sas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sas/readstat_sas.c b/src/sas/readstat_sas.c index 4a4ae1fc..1b59e7cb 100644 --- a/src/sas/readstat_sas.c +++ b/src/sas/readstat_sas.c @@ -74,9 +74,9 @@ static time_t sas_convert_time(double time, time_t epoch) { time += epoch; if (isnan(time)) return 0; - if (time > 1.0 * LONG_MAX) + if (time > (double)LONG_MAX) return LONG_MAX; - if (time < 1.0 * LONG_MIN) + if (time < (double)LONG_MIN) return LONG_MIN; return time; }