mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
util: add some casts to silence some MSVC warnings
This commit is contained in:
parent
aab8ca8fd1
commit
bbdd7cfb8b
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue