diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-01-12 13:41:40 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-01-12 13:41:40 +0000 |
commit | 336ad582131f94b9e77c91c83c067dbd0c54c3fc (patch) | |
tree | 9fd3f988faf41115c646b253010e6f45660c9e57 /test/stdvector.cpp | |
parent | af5034b3c0280cfa1463c870ee5be8a711a282f7 (diff) |
* move cwise *= and /= to Core (like * and /)
* tidy the StdVector module
* fix warnings (especially a | instead of ||) in stdvector test
Diffstat (limited to 'test/stdvector.cpp')
-rw-r--r-- | test/stdvector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/stdvector.cpp b/test/stdvector.cpp index ea57c0736..024f97287 100644 --- a/test/stdvector.cpp +++ b/test/stdvector.cpp @@ -53,9 +53,9 @@ void check_stdvector(const MatrixType& m) // do a lot of push_back such that the vector gets internally resized // (with memory reallocation) MatrixType* ref = &w[0]; - for(int i=0; i<30 | ((ref==&w[0]) && i<300); ++i) + for(int i=0; i<30 || ((ref==&w[0]) && i<300); ++i) v.push_back(w[i%w.size()]); - for(int i=23; i<v.size(); ++i) + for(unsigned int i=23; i<v.size(); ++i) { VERIFY(v[i]==w[(i-23)%w.size()]); } |