mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 20:00:09 +00:00
Merge pull request #2227 from thePHTest/master
correct compare_exact_values(x,y) for TypeId and Procedure
This commit is contained in:
+4
-4
@@ -952,15 +952,15 @@ bool compare_exact_values(TokenKind op, ExactValue x, ExactValue y) {
|
|||||||
|
|
||||||
case ExactValue_Typeid:
|
case ExactValue_Typeid:
|
||||||
switch (op) {
|
switch (op) {
|
||||||
case Token_CmpEq: return are_types_identical(x.value_typeid, y.value_typeid);
|
case Token_CmpEq: return x.value_typeid == y.value_typeid;
|
||||||
case Token_NotEq: return !are_types_identical(x.value_typeid, y.value_typeid);
|
case Token_NotEq: return x.value_typeid != y.value_typeid;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ExactValue_Procedure:
|
case ExactValue_Procedure:
|
||||||
switch (op) {
|
switch (op) {
|
||||||
case Token_CmpEq: return are_types_identical(x.value_typeid, y.value_typeid);
|
case Token_CmpEq: return x.value_typeid == y.value_typeid;
|
||||||
case Token_NotEq: return !are_types_identical(x.value_typeid, y.value_typeid);
|
case Token_NotEq: return x.value_typeid != y.value_typeid;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user