summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c56881a)
raw | patch | inline | side by side (parent: c56881a)
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | |
Mon, 15 Aug 2011 20:05:34 +0000 (21:05 +0100) | ||
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | |
Mon, 15 Aug 2011 20:15:29 +0000 (21:15 +0100) |
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
Fixes warning #186: pointless comparison of unsigned integer reported by ICC.
https://bugzilla.gnome.org/show_bug.cgi?id=656265
gst/gstcaps.c | patch | blob | history |
diff --git a/gst/gstcaps.c b/gst/gstcaps.c
index df348beb16b53792bc3e7d638a706427217413f4..94b700019d4cdcdd969fbcb8417c89ab0fbd4342 100644 (file)
--- a/gst/gstcaps.c
+++ b/gst/gstcaps.c
j = MIN (i, len1 - 1);
/* subset index stays 0 until i reaches superset->structs->len, then it
* 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
* border */
j = MIN (i, len1 - 1);
/* caps2 index stays 0 until i reaches caps1->structs->len, then it counts
* 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
* border */