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; }