Fix bitvect.test.
* src/tests/bitvect.cc: Fix it, it was failing an assert() on 32bit architectures because the subset test was done in the wrong order. Reported by Christopher Ziegler. * NEWS: Mention it.
This commit is contained in:
parent
0510e4dfe8
commit
c2f0a5f02c
2 changed files with 5 additions and 3 deletions
2
NEWS
2
NEWS
|
|
@ -76,6 +76,8 @@ New in spot 1.99.2a (not yet released)
|
||||||
- Fix spurious failure of uniq.test under different locales.
|
- Fix spurious failure of uniq.test under different locales.
|
||||||
- ltlcross now recovers from out-of-memory errors during
|
- ltlcross now recovers from out-of-memory errors during
|
||||||
state-space products.
|
state-space products.
|
||||||
|
- bitvect.test was failing on 32bit with assertions enabled
|
||||||
|
because of a bug in the test case.
|
||||||
|
|
||||||
New in spot 1.99.2 (2015-07-18)
|
New in spot 1.99.2 (2015-07-18)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
// -*- coding: utf-8 -*-
|
// -*- coding: utf-8 -*-
|
||||||
// Copyright (C) 2013, 2014 Laboratoire de Recherche et Développement
|
// Copyright (C) 2013, 2014, 2015 Laboratoire de Recherche et
|
||||||
// de l'Epita (LRDE).
|
// Développement de l'Epita (LRDE).
|
||||||
//
|
//
|
||||||
// This file is part of Spot, a model checking library.
|
// This file is part of Spot, a model checking library.
|
||||||
//
|
//
|
||||||
|
|
@ -65,7 +65,7 @@ int main()
|
||||||
ECHO(x);
|
ECHO(x);
|
||||||
|
|
||||||
std::cout << "subset? " << w->is_subset_of(*x)
|
std::cout << "subset? " << w->is_subset_of(*x)
|
||||||
<< ' ' << w->is_subset_of(*v) << '\n';
|
<< ' ' << v->is_subset_of(*w) << '\n';
|
||||||
|
|
||||||
for (size_t i = 0; i < 30; ++i)
|
for (size_t i = 0; i < 30; ++i)
|
||||||
w->push_back((i & 3) == 0);
|
w->push_back((i & 3) == 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue