aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/integer_types.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-07-05 11:15:08 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-07-05 11:15:08 +0200
commit15a421ef63c70d63e2b2a2ace55980442ef21d07 (patch)
tree502677dd5a104462aaa89062bed5763e3fbfcd81 /test/integer_types.cpp
parent6249d6071579df55e30d515a318b352bcedac922 (diff)
char is not necessarily signed....
Diffstat (limited to 'test/integer_types.cpp')
-rw-r--r--test/integer_types.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integer_types.cpp b/test/integer_types.cpp
index abed4a6ac..14f8eaa6e 100644
--- a/test/integer_types.cpp
+++ b/test/integer_types.cpp
@@ -70,7 +70,7 @@ template<typename MatrixType> void integer_type_tests(const MatrixType& m)
VERIFY(NumTraits<Scalar>::IsInteger);
enum { is_signed = (Scalar(-1) > Scalar(0)) ? 0 : 1 };
VERIFY(int(NumTraits<Scalar>::IsSigned) == is_signed);
-
+
typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType;
Index rows = m.rows();
@@ -123,7 +123,7 @@ template<typename MatrixType> void integer_type_tests(const MatrixType& m)
VERIFY(!(m1!=m2));
// check linear structure
-
+
Scalar s1;
do {
s1 = ei_random<Scalar>();
@@ -158,7 +158,7 @@ void test_integer_types()
CALL_SUBTEST_2( signed_integer_type_tests(Matrix<long, 2, 2>()) );
CALL_SUBTEST_3( integer_type_tests(Matrix<char, 2, Dynamic>(2, 10)) );
- CALL_SUBTEST_3( signed_integer_type_tests(Matrix<char, 2, Dynamic>(2, 10)) );
+ CALL_SUBTEST_3( signed_integer_type_tests(Matrix<signed char, 2, Dynamic>(2, 10)) );
CALL_SUBTEST_4( integer_type_tests(Matrix<unsigned char, 3, 3>()) );
CALL_SUBTEST_4( integer_type_tests(Matrix<unsigned char, Dynamic, Dynamic>(20, 20)) );