mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 21:51:09 +00:00
caps: fix compiler warning reported by ICC
The MAX macro expands to code that checks if an unsigned integer is < 0. Fixes warning #186: pointless comparison of unsigned integer reported by ICC. https://bugzilla.gnome.org/show_bug.cgi?id=656265
This commit is contained in:
parent
c56881a026
commit
4985d2a954
1 changed files with 2 additions and 2 deletions
|
@ -1239,7 +1239,7 @@ gst_caps_can_intersect (const GstCaps * caps1, const GstCaps * caps2)
|
||||||
j = MIN (i, len1 - 1);
|
j = MIN (i, len1 - 1);
|
||||||
/* subset index stays 0 until i reaches superset->structs->len, then it
|
/* subset index stays 0 until i reaches superset->structs->len, then it
|
||||||
* counts up from 1 to subset->structs->len - 1 */
|
* counts up from 1 to subset->structs->len - 1 */
|
||||||
k = MAX (0, i - j);
|
k = (i > j) ? (i - j) : 0; /* MAX (0, i - j) */
|
||||||
|
|
||||||
/* now run the diagonal line, end condition is the left or bottom
|
/* now run the diagonal line, end condition is the left or bottom
|
||||||
* border */
|
* border */
|
||||||
|
@ -1310,7 +1310,7 @@ gst_caps_intersect_zig_zag (const GstCaps * caps1, const GstCaps * caps2)
|
||||||
j = MIN (i, len1 - 1);
|
j = MIN (i, len1 - 1);
|
||||||
/* caps2 index stays 0 until i reaches caps1->structs->len, then it counts
|
/* caps2 index stays 0 until i reaches caps1->structs->len, then it counts
|
||||||
* up from 1 to caps2->structs->len - 1 */
|
* up from 1 to caps2->structs->len - 1 */
|
||||||
k = MAX (0, i - j);
|
k = (i > j) ? (i - j) : 0; /* MAX (0, i - j) */
|
||||||
|
|
||||||
/* now run the diagonal line, end condition is the left or bottom
|
/* now run the diagonal line, end condition is the left or bottom
|
||||||
* border */
|
* border */
|
||||||
|
|
Loading…
Reference in a new issue