mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 20:38:43 +00:00
fix regression on string ops
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3eefd18c58
commit
a7aff1bcf0
|
@ -283,7 +283,7 @@ bool zstring::contains(zstring const& other) const {
|
|||
int zstring::indexofu(zstring const& other, unsigned offset) const {
|
||||
if (offset <= length() && other.length() == 0) return offset;
|
||||
if (offset == length()) return -1;
|
||||
if (offset < other.length() + offset) return -1;
|
||||
if (offset > other.length() + offset) return -1;
|
||||
if (other.length() + offset > length()) return -1;
|
||||
unsigned last = length() - other.length();
|
||||
for (unsigned i = offset; i <= last; ++i) {
|
||||
|
|
Loading…
Reference in a new issue