summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2012-11-30 23:34:47 +0000
committerTim King <taking@cs.nyu.edu>2012-11-30 23:34:47 +0000
commit7f7f7188f1f62502653da77660e333dfb8b38785 (patch)
tree7871ee37ae9447aa0745f3d3aff6255eecce7cbc
parentda19406935198bb3786b37714a156980f6e0639f (diff)
Fixes for stricter compilers Andy brought to my attention.
-rw-r--r--test/unit/util/integer_white.h4
-rw-r--r--test/unit/util/rational_white.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/util/integer_white.h b/test/unit/util/integer_white.h
index 19281d745..32db6fd83 100644
--- a/test/unit/util/integer_white.h
+++ b/test/unit/util/integer_white.h
@@ -43,9 +43,9 @@ public:
//Make sure we can properly handle:
//http://www.ginac.de/CLN/cln_3.html#SEC15
- const int i_above2tothe29 = (1 << 29) + 1;
- const unsigned int u_above2tothe29 = (1 << 29) + 1;
void testConstruction(){
+ const int i_above2tothe29 = (1 << 29) + 1;
+ const unsigned int u_above2tothe29 = (1 << 29) + 1;
TS_ASSERT_EQUALS(Integer(i_above2tothe29), Integer((long)i_above2tothe29));
TS_ASSERT_EQUALS(Integer(u_above2tothe29),
Integer((unsigned long)u_above2tothe29));
diff --git a/test/unit/util/rational_white.h b/test/unit/util/rational_white.h
index 63b4e1843..be5b9f044 100644
--- a/test/unit/util/rational_white.h
+++ b/test/unit/util/rational_white.h
@@ -433,9 +433,9 @@ public:
//Make sure we can properly handle:
//http://www.ginac.de/CLN/cln_3.html#SEC15
- const int i_above2tothe29 = (1 << 29) + 1;
- const unsigned int u_above2tothe29 = (1 << 29) + 1;
void testConstruction(){
+ const int i_above2tothe29 = (1 << 29) + 1;
+ const unsigned int u_above2tothe29 = (1 << 29) + 1;
TS_ASSERT_EQUALS(Rational(i_above2tothe29), Rational((long)i_above2tothe29));
TS_ASSERT_EQUALS(Rational(u_above2tothe29),
Rational((unsigned long)u_above2tothe29));
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback