mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
dvb-section: Don't compare unsigned integers for >= 0
gst-dvb-section.c:93:12: error: comparison of unsigned expression >= 0 is always true [-Werror,-Wtautological-compare] if (hour >= 0 && hour < 24 && minute >= 0 && minute < 60 && second >= 0 ~~~~ ^ ~ gst-dvb-section.c:93:40: error: comparison of unsigned expression >= 0 is always true [-Werror,-Wtautological-compare] if (hour >= 0 && hour < 24 && minute >= 0 && minute < 60 && second >= 0 ~~~~~~ ^ ~ gst-dvb-section.c:93:70: error: comparison of unsigned expression >= 0 is always true [-Werror,-Wtautological-compare] if (hour >= 0 && hour < 24 && minute >= 0 && minute < 60 && second >= 0 ~~~~~~ ^ ~
This commit is contained in:
parent
5edf0add57
commit
752b3a503e
1 changed files with 1 additions and 2 deletions
|
@ -90,8 +90,7 @@ _parse_utc_time (guint8 * data)
|
|||
second = ((utc_ptr[2] & 0x70) >> 4) * 10 + (utc_ptr[2] & 0x0F);
|
||||
|
||||
/* Time is UTC */
|
||||
if (hour >= 0 && hour < 24 && minute >= 0 && minute < 60 && second >= 0
|
||||
&& second < 60) {
|
||||
if (hour < 24 && minute < 60 && second < 60) {
|
||||
return gst_date_time_new (0.0, year, month, day, hour, minute,
|
||||
(gdouble) second);
|
||||
} else if (utc_ptr[0] == 0xFF && utc_ptr[1] == 0xFF && utc_ptr[2] == 0xFF) {
|
||||
|
|
Loading…
Reference in a new issue