File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,13 @@ BOOST_AUTO_TEST_CASE(bits) {
83
83
84
84
BOOST_AUTO_TEST_CASE (next_power) {
85
85
uint32_t t = static_cast <uint32_t >(1 );
86
- CHECK_EQ (size_to_next_power (t), uint32_t (1 ));
86
+ CHECK_EQ (size_to_next_power (t), static_cast < uint32_t > (1 ));
87
87
uint32_t u = static_cast <uint32_t >(42 );
88
- CHECK_EQ (size_to_next_power (u), uint32_t (64 ));
88
+ CHECK_EQ (size_to_next_power (u), static_cast < uint32_t > (64 ));
89
89
uint32_t v = static_cast <uint32_t >(128 );
90
- CHECK_EQ (size_to_next_power (v), uint32_t (128 ));
90
+ CHECK_EQ (size_to_next_power (v), static_cast < uint32_t > (128 ));
91
91
uint32_t w = static_cast <uint32_t >(1 ) << 31 ;
92
- CHECK_EQ (size_to_next_power (w), uint32_t (1 ) << 31 );
92
+ CHECK_EQ (size_to_next_power (w), static_cast < uint32_t > (1 ) << 31 );
93
93
}
94
94
95
95
BOOST_AUTO_TEST_CASE (rehash) {
Original file line number Diff line number Diff line change 29
29
#define BOOST_TEST_MAIN
30
30
#define BOOST_TEST_MODULE productive
31
31
#include < sstream>
32
- Add #include <string>
32
+ #include < string>
33
33
#include < boost/test/unit_test.hpp>
34
34
35
35
// include everything - no linking needed ...
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ BOOST_AUTO_TEST_CASE(runtime_both) {
71
71
CHECK_EQ (b, a);
72
72
a = Runtime::Asm::Poly (23 );
73
73
b = Runtime::Poly (1 , 23 );
74
- CHECK_EQ (b.degree (), uint32_t (23 ));
74
+ CHECK_EQ (b.degree (), static_cast < uint32_t > (23 ));
75
75
CHECK_EQ (b, a);
76
76
CHECK_EQ (a, b);
77
77
b = Runtime::Poly (23 , 3 );
Original file line number Diff line number Diff line change 28
28
#define BOOST_TEST_DYN_LINK
29
29
#define BOOST_TEST_MAIN
30
30
#define BOOST_TEST_MODULE sequence
31
- #include < string>
32
31
#include < string.h>
32
+ #include < string>
33
33
#include < boost/test/unit_test.hpp>
34
34
35
35
// include everything - no linking needed ...
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ BOOST_AUTO_TEST_CASE(shape_set) {
205
205
std::set<Shape> s;
206
206
s.insert (g);
207
207
s.insert (h);
208
- CHECK_EQ (s.size (), uint32_t (2 ));
208
+ CHECK_EQ (s.size (), static_cast < uint32_t > (2 ));
209
209
std::set<Shape>::iterator i = s.begin ();
210
210
std::ostringstream x;
211
211
x << *i;
You can’t perform that action at this time.
0 commit comments