summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-07-13 20:52:02 -0500
committerGitHub <noreply@github.com>2020-07-13 20:52:02 -0500
commit84fe644cb1956119b7b35ede06ee93583eae1925 (patch)
treef33e38a0bbd2aef8632afd1f6753c85b02f70635
parentcafc00bd77aa08ae58a695f6364c3ca0f538e9d8 (diff)
Fix type comparisons involving pointer. (#4738)
Fixes debug regressions, introduced by a combination of the addition of sequence update and the change to pointers.
-rw-r--r--src/expr/sequence.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr/sequence.cpp b/src/expr/sequence.cpp
index 9ae19660b..394c1a407 100644
--- a/src/expr/sequence.cpp
+++ b/src/expr/sequence.cpp
@@ -98,7 +98,7 @@ bool Sequence::strncmp(const Sequence& y, size_t n) const
bool Sequence::rstrncmp(const Sequence& y, size_t n) const
{
- Assert(d_type == y.d_type);
+ Assert(getType() == y.getType());
size_t b = (size() >= y.size()) ? size() : y.size();
size_t s = (size() <= y.size()) ? size() : y.size();
if (n > s)
@@ -282,7 +282,7 @@ bool Sequence::hasSuffix(const Sequence& y) const
Sequence Sequence::update(size_t i, const Sequence& t) const
{
- Assert(d_type == t.d_type);
+ Assert(getType() == t.getType());
if (i < size())
{
std::vector<Node> vec(d_seq.begin(), d_seq.begin() + i);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback