Fix ProgramValue for strings
This commit is contained in:
parent
c25a553cfa
commit
f03f7bdacc
|
@ -3333,12 +3333,12 @@ bool ProgramValue::operator<(ProgramValue const& other) const
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (opcode) {
|
switch (opcode) {
|
||||||
case VALUE_TYPE_DYNAMIC_STRING:
|
case VALUE_TYPE_INT:
|
||||||
case VALUE_TYPE_STRING:
|
case VALUE_TYPE_STRING:
|
||||||
|
case VALUE_TYPE_DYNAMIC_STRING:
|
||||||
|
return integerValue < other.integerValue;
|
||||||
case VALUE_TYPE_PTR:
|
case VALUE_TYPE_PTR:
|
||||||
return pointerValue < other.pointerValue;
|
return pointerValue < other.pointerValue;
|
||||||
case VALUE_TYPE_INT:
|
|
||||||
return integerValue < other.integerValue;
|
|
||||||
case VALUE_TYPE_FLOAT:
|
case VALUE_TYPE_FLOAT:
|
||||||
return floatValue < other.floatValue;
|
return floatValue < other.floatValue;
|
||||||
default:
|
default:
|
||||||
|
@ -3353,12 +3353,12 @@ bool ProgramValue::operator==(ProgramValue const& other) const
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (opcode) {
|
switch (opcode) {
|
||||||
case VALUE_TYPE_DYNAMIC_STRING:
|
case VALUE_TYPE_INT:
|
||||||
case VALUE_TYPE_STRING:
|
case VALUE_TYPE_STRING:
|
||||||
|
case VALUE_TYPE_DYNAMIC_STRING:
|
||||||
|
return integerValue == other.integerValue;
|
||||||
case VALUE_TYPE_PTR:
|
case VALUE_TYPE_PTR:
|
||||||
return pointerValue == other.pointerValue;
|
return pointerValue == other.pointerValue;
|
||||||
case VALUE_TYPE_INT:
|
|
||||||
return integerValue == other.integerValue;
|
|
||||||
case VALUE_TYPE_FLOAT:
|
case VALUE_TYPE_FLOAT:
|
||||||
return floatValue == other.floatValue;
|
return floatValue == other.floatValue;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue