compiler: make variable::data::binding unsigned

Nothing seems to set a negative value.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
Marek Olšák
2019-10-25 16:36:15 -04:00
parent 4b4b383f38
commit af94600484
2 changed files with 2 additions and 2 deletions

View File

@@ -905,7 +905,7 @@ public:
* *
* For array types, this represents the binding point for the first element. * For array types, this represents the binding point for the first element.
*/ */
int16_t binding; uint16_t binding;
/** /**
* Storage location of the base of this variable * Storage location of the base of this variable

View File

@@ -470,7 +470,7 @@ typedef struct nir_variable {
* *
* For array types, this represents the binding point for the first element. * For array types, this represents the binding point for the first element.
*/ */
int binding; unsigned binding;
/** /**
* Location an atomic counter or transform feedback is stored at. * Location an atomic counter or transform feedback is stored at.