parse-datetime: Use labs() for long input value
Fixes a compliation warning with CLang, I didn't study it to see whether this was a major issue or not. Closes: #548 Approved by: jlebon
This commit is contained in:
parent
21ca60f987
commit
cbbfb5369f
|
|
@ -896,7 +896,7 @@ time_zone_hhmm (parser_control *pc, textint s, long int mm)
|
||||||
/* If the absolute number of minutes is larger than 24 hours,
|
/* If the absolute number of minutes is larger than 24 hours,
|
||||||
arrange to reject it by incrementing pc->zones_seen. Thus,
|
arrange to reject it by incrementing pc->zones_seen. Thus,
|
||||||
we allow only values in the range UTC-24:00 to UTC+24:00. */
|
we allow only values in the range UTC-24:00 to UTC+24:00. */
|
||||||
if (24 * 60 < abs (n_minutes))
|
if (24 * 60 < labs (n_minutes))
|
||||||
pc->zones_seen++;
|
pc->zones_seen++;
|
||||||
|
|
||||||
return n_minutes;
|
return n_minutes;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue