Skip to content

Commit

Permalink
Fix implicit float conversion warning
Browse files Browse the repository at this point in the history
Addresses oss-fuzz/16372
  • Loading branch information
evanmiller committed Aug 11, 2019
1 parent 37d415a commit bd050b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sas/readstat_sas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bd050b4

Please sign in to comment.