diff --git a/test/packed_arithmetic_test.cpp b/test/packed_arithmetic_test.cpp index 103429a..b84eee2 100644 --- a/test/packed_arithmetic_test.cpp +++ b/test/packed_arithmetic_test.cpp @@ -20,13 +20,18 @@ using namespace boost::endian; struct X { big_uint16_t a; - double b; + native_float64_t b; little_uint16_t c; } __attribute__((packed)); int main() { - BOOST_TEST_EQ( sizeof( X ), 12 ); + BOOST_TEST_EQ( sizeof(big_uint16_t), 2 ); + BOOST_TEST_EQ( sizeof(native_float64_t), 8 ); + BOOST_TEST_EQ( sizeof(little_uint16_t), 2 ); + + BOOST_TEST_EQ( sizeof(X), 12 ); + return boost::report_errors(); } diff --git a/test/packed_buffer_test.cpp b/test/packed_buffer_test.cpp index 065bd74..764f0f2 100644 --- a/test/packed_buffer_test.cpp +++ b/test/packed_buffer_test.cpp @@ -20,15 +20,16 @@ using namespace boost::endian; struct X { big_uint16_buf_t a; - double b; + native_float64_buf_t b; little_uint16_buf_t c; } __attribute__((packed)); int main() { BOOST_TEST_EQ( sizeof(big_uint16_buf_t), 2 ); - BOOST_TEST_EQ( sizeof(double), 8 ); + BOOST_TEST_EQ( sizeof(native_float64_buf_t), 8 ); BOOST_TEST_EQ( sizeof(little_uint16_buf_t), 2 ); + BOOST_TEST_EQ( sizeof(X), 12 ); return boost::report_errors();