Commit 3a44d7fe by John Kessenich

glslang spvIR.h: Portability improvement.

parent 5d3e1233
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment