mirror of
https://github.com/boostorg/polygon.git
synced 2026-02-15 01:12:10 +00:00
Polygon: fixing Sandia-pgi-11.9 trunk test target.
[SVN r78396]
This commit is contained in:
@@ -1456,7 +1456,7 @@ namespace boost { namespace polygon{
|
||||
|
||||
template <typename cT, typename iT>
|
||||
void get_error_rects_shell(cT& posE, cT& negE, iT beginr, iT endr) {
|
||||
typedef typename iT::value_type Point;
|
||||
typedef typename std::iterator_traits<iT>::value_type Point;
|
||||
typedef typename point_traits<Point>::coordinate_type Unit;
|
||||
typedef typename coordinate_traits<Unit>::area_type area_type;
|
||||
Point pt1, pt2, pt3;
|
||||
|
||||
@@ -24,8 +24,8 @@ BOOST_AUTO_TEST_CASE(ulp_comparison_test1) {
|
||||
uint64 a = 22;
|
||||
uint64 b = 27;
|
||||
fpt64 da, db;
|
||||
memcpy(&da, &a, sizeof(uint64));
|
||||
memcpy(&db, &b, sizeof(uint64));
|
||||
std::memcpy(&da, &a, sizeof(uint64));
|
||||
std::memcpy(&db, &b, sizeof(uint64));
|
||||
BOOST_CHECK_EQUAL(ulp_cmp(da, db, 1), ulp_cmp.LESS);
|
||||
BOOST_CHECK_EQUAL(ulp_cmp(db, da, 1), ulp_cmp.MORE);
|
||||
BOOST_CHECK_EQUAL(ulp_cmp(da, db, 4), ulp_cmp.LESS);
|
||||
@@ -38,8 +38,8 @@ BOOST_AUTO_TEST_CASE(ulp_comparison_test2) {
|
||||
uint64 a = 0ULL;
|
||||
uint64 b = 0x8000000000000002ULL;
|
||||
fpt64 da, db;
|
||||
memcpy(&da, &a, sizeof(uint64));
|
||||
memcpy(&db, &b, sizeof(uint64));
|
||||
std::memcpy(&da, &a, sizeof(uint64));
|
||||
std::memcpy(&db, &b, sizeof(uint64));
|
||||
BOOST_CHECK_EQUAL(ulp_cmp(da, db, 1), ulp_cmp.MORE);
|
||||
BOOST_CHECK_EQUAL(ulp_cmp(db, da, 1), ulp_cmp.LESS);
|
||||
BOOST_CHECK_EQUAL(ulp_cmp(da, db, 2), ulp_cmp.EQUAL);
|
||||
|
||||
Reference in New Issue
Block a user