projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aab8ca8
)
util: add some casts to silence some MSVC warnings
author
Brian Paul
<brianp@vmware.com>
Wed, 26 Jun 2013 15:26:25 +0000
(09:26 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 26 Jun 2013 16:42:59 +0000
(10:42 -0600)
src/gallium/auxiliary/util/u_linkage.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_linkage.c
b/src/gallium/auxiliary/util/u_linkage.c
index 2f6f41ba843decb1179e654b89e3254aba9f1cf4..245d941dc361bd62bbe1a601b11125b80d9548b1 100644
(file)
--- 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;