projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
489c787
)
util: Move loop variable declaration outside for loop.
author
Vinson Lee
<vlee@vmware.com>
Sat, 21 Aug 2010 21:36:29 +0000
(14:36 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Sat, 21 Aug 2010 21:36:29 +0000
(14:36 -0700)
Fixes build error with MSVC.
src/gallium/auxiliary/util/u_linkage.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_linkage.h
b/src/gallium/auxiliary/util/u_linkage.h
index c30b56e6e4761d39e2da161a4e0ea950d8eb8143..4720e0ee603debf12a8b06f4691ac8d529595a99 100644
(file)
--- a/
src/gallium/auxiliary/util/u_linkage.h
+++ b/
src/gallium/auxiliary/util/u_linkage.h
@@
-56,9
+56,10
@@
void util_semantic_layout_from_set(unsigned char *layout, const struct util_sema
static INLINE void
util_semantic_table_from_layout(unsigned char *table, unsigned char *layout, unsigned char first_slot_value, unsigned char num_slots)
{
+ int i;
memset(table, 0xff, sizeof(table));
- for(i
nt i
= 0; i < num_slots; ++i)
+ for(i = 0; i < num_slots; ++i)
table[layout[i]] = first_slot_value + i;
}