nextNestedControl = 0;
}
} else if (opCode == OpExtInstImport) {
- idDescriptor[resultId] = (char*)(&stream[word]);
+ idDescriptor[resultId] = (const char*)(&stream[word]);
}
else {
if (idDescriptor[resultId].size() == 0) {
disassembleIds(1);
// Get names for printing "(XXX)" for readability, *after* this id
if (opCode == OpName)
- idDescriptor[stream[word - 1]] = (char*)(&stream[word]);
+ idDescriptor[stream[word - 1]] = (const char*)(&stream[word]);
break;
case OperandOptionalId:
case OperandVariableIds:
return;
case OperandOptionalLiteral:
case OperandVariableLiterals:
- if (opCode == OpDecorate && stream[word - 1] == DecorationBuiltIn ||
- opCode == OpMemberDecorate && stream[word - 1] == DecorationBuiltIn) {
+ if ((opCode == OpDecorate && stream[word - 1] == DecorationBuiltIn) ||
+ (opCode == OpMemberDecorate && stream[word - 1] == DecorationBuiltIn)) {
out << BuiltInString(stream[word++]);
--numOperands;
++op;
disassembleImmediates(1);
if (opCode == OpExtInst) {
ExtInstSet extInstSet = GLSL450Inst;
- if (0 == memcmp("OpenCL", (char*)(idDescriptor[stream[word-2]].c_str()), 6)) {
+ if (0 == memcmp("OpenCL", (const char*)(idDescriptor[stream[word-2]].c_str()), 6)) {
extInstSet = OpenCLExtInst;
}
unsigned entrypoint = stream[word - 1];
userType = copyOf.userType;
numExtensions = 0;
extensions = 0;
- if (copyOf.numExtensions > 0)
+ if (copyOf.numExtensions != 0)
setExtensions(copyOf.numExtensions, copyOf.extensions);
if (! copyOf.unionArray.empty()) {