Skip to content
Snippets Groups Projects
Commit 3a44d7fe authored by John Kessenich's avatar John Kessenich
Browse files

glslang spvIR.h: Portability improvement.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31139 e7fa87d3-cd2b-0410-9028-fcbf551c1848
parent 5d3e1233
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,7 @@ public:
}
}
Op getOpCode() const { return opCode; }
int getNumOperands() const { return operands.size(); }
int getNumOperands() const { return (int)operands.size(); }
Id getResultId() const { return resultId; }
Id getTypeId() const { return typeId; }
Id getIdOperand(int op) const { return operands[op]; }
......@@ -127,9 +127,9 @@ public:
++wordCount;
if (resultId)
++wordCount;
wordCount += operands.size();
wordCount += (unsigned int)operands.size();
if (string)
wordCount += string->size();
wordCount += (unsigned int)string->size();
// Write out the beginning of the instruction
out.push_back(((wordCount) << WordCountShift) | opCode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment