diff options
author | Brian Paul <[email protected]> | 2013-06-26 09:26:25 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-06-26 10:42:59 -0600 |
commit | bbdd7cfb8ba34943ac5890637024fee46b03ab13 (patch) | |
tree | b04d3b2901720d1971246be935f063547c9e2cfd /src | |
parent | aab8ca8fd15df73e6c6a5a0533e894a4cb23e9e6 (diff) |
util: add some casts to silence some MSVC warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_linkage.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |