summaryrefslogtreecommitdiff
path: root/src/ostree/parse-datetime.y
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-10-25 13:16:14 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2016-10-27 17:02:01 +0000
commitcbbfb5369fbbab9b0553db16636cfe76b12b1d75 (patch)
tree5555c574420d7a0b6d99bae5bf82a5bb24962487 /src/ostree/parse-datetime.y
parent21ca60f9875c97a13848bb2298282b006e472b04 (diff)
downloadostree-cbbfb5369fbbab9b0553db16636cfe76b12b1d75.tar.gz
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
Diffstat (limited to 'src/ostree/parse-datetime.y')
-rw-r--r--src/ostree/parse-datetime.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/parse-datetime.y b/src/ostree/parse-datetime.y
index d05bb55b..f5688d30 100644
--- a/src/ostree/parse-datetime.y
+++ b/src/ostree/parse-datetime.y
@@ -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,
arrange to reject it by incrementing pc->zones_seen. Thus,
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++;
return n_minutes;