mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-24 11:50:06 +00:00
Build: Fix #1036: size_t warning.
This commit is contained in:
parent
ea0c1643ab
commit
4e2f05da41
@ -5095,7 +5095,7 @@ void HlslParseContext::expandArguments(const TSourceLoc& loc, const TFunction& f
|
||||
const auto setArgList = [&](int paramNum, const TVector<TIntermTyped*>& args) {
|
||||
if (args.size() == 1)
|
||||
setArg(paramNum, args.front());
|
||||
else {
|
||||
else if (args.size() > 1) {
|
||||
if (function.getParamCount() + functionParamNumberOffset == 1) {
|
||||
arguments = intermediate.makeAggregate(args.front());
|
||||
std::for_each(args.begin() + 1, args.end(),
|
||||
@ -5106,8 +5106,8 @@ void HlslParseContext::expandArguments(const TSourceLoc& loc, const TFunction& f
|
||||
auto it = aggregate->getSequence().erase(aggregate->getSequence().begin() + paramNum);
|
||||
aggregate->getSequence().insert(it, args.begin(), args.end());
|
||||
}
|
||||
functionParamNumberOffset += (int)(args.size() - 1);
|
||||
}
|
||||
functionParamNumberOffset += (args.size() - 1);
|
||||
};
|
||||
|
||||
// Process each argument's conversion
|
||||
|
Loading…
Reference in New Issue
Block a user