diff options
| author | Phil <homan.phil@gmail.com> | 2022-12-02 13:11:46 -0800 |
|---|---|---|
| committer | Phil <homan.phil@gmail.com> | 2022-12-02 13:13:01 -0800 |
| commit | 7a4106077a3c2b58ad90f54170735e52c808f533 (patch) | |
| tree | 25145f67af661ccb6061cf72e97355b7d8781e28 /src/exact_value.cpp | |
| parent | 9c8eaeb9882fc633eef9e86a88fc32502aef2f0d (diff) | |
correct compare_exact_values(x,y) for TypeId and Procedure
Diffstat (limited to 'src/exact_value.cpp')
| -rw-r--r-- | src/exact_value.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/exact_value.cpp b/src/exact_value.cpp index 659db33b7..25ff08a82 100644 --- a/src/exact_value.cpp +++ b/src/exact_value.cpp @@ -952,15 +952,15 @@ bool compare_exact_values(TokenKind op, ExactValue x, ExactValue y) { case ExactValue_Typeid: switch (op) { - case Token_CmpEq: return are_types_identical(x.value_typeid, y.value_typeid); - case Token_NotEq: return !are_types_identical(x.value_typeid, y.value_typeid); + case Token_CmpEq: return x.value_typeid == y.value_typeid; + case Token_NotEq: return x.value_typeid != y.value_typeid; } break; case ExactValue_Procedure: switch (op) { - case Token_CmpEq: return are_types_identical(x.value_typeid, y.value_typeid); - case Token_NotEq: return !are_types_identical(x.value_typeid, y.value_typeid); + case Token_CmpEq: return x.value_typeid == y.value_typeid; + case Token_NotEq: return x.value_typeid != y.value_typeid; } break; } |