mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-15 16:30:08 +00:00
Fix integer precision warnings on assignments.
This commit is contained in:
parent
f22de1f2f1
commit
daa831f59d
@ -1350,7 +1350,7 @@ void CompilerMSL::emit_custom_functions()
|
||||
{
|
||||
uint32_t dimensions = spv_func - SPVFuncImplArrayCopyMultidimBase;
|
||||
string tmp = "template<typename T";
|
||||
for (uint32_t i = 0; i < dimensions; i++)
|
||||
for (uint8_t i = 0; i < dimensions; i++)
|
||||
{
|
||||
tmp += ", uint ";
|
||||
tmp += 'A' + i;
|
||||
@ -1359,7 +1359,7 @@ void CompilerMSL::emit_custom_functions()
|
||||
statement(tmp);
|
||||
|
||||
string array_arg;
|
||||
for (uint32_t i = 0; i < dimensions; i++)
|
||||
for (uint8_t i = 0; i < dimensions; i++)
|
||||
{
|
||||
array_arg += "[";
|
||||
array_arg += 'A' + i;
|
||||
|
Loading…
Reference in New Issue
Block a user