From: Brian Paul Date: Wed, 26 Jun 2013 15:26:25 +0000 (-0600) Subject: util: add some casts to silence some MSVC warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bbdd7cfb8ba34943ac5890637024fee46b03ab13;p=mesa.git util: add some casts to silence some MSVC warnings --- diff --git a/src/gallium/auxiliary/util/u_linkage.c b/src/gallium/auxiliary/util/u_linkage.c index 2f6f41ba843..245d941dc36 100644 --- a/src/gallium/auxiliary/util/u_linkage.c +++ b/src/gallium/auxiliary/util/u_linkage.c @@ -130,12 +130,12 @@ util_semantic_layout_from_set(unsigned char *layout, const struct util_semantic_ last = i; } - if(last < efficient_slots) + if (last < (int) efficient_slots) { UTIL_SEMANTIC_SET_FOR_EACH(i, set) layout[i] = i; } - else if((last - first) < efficient_slots) + else if ((last - first) < (int) efficient_slots) { UTIL_SEMANTIC_SET_FOR_EACH(i, set) layout[i - first] = i;