Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52874 - trunk/libs/spirit/test/qi
From: hartmut.kaiser_at_[hidden]
Date: 2009-05-10 12:03:02


Author: hkaiser
Date: 2009-05-10 12:03:01 EDT (Sun, 10 May 2009)
New Revision: 52874
URL: http://svn.boost.org/trac/boost/changeset/52874

Log:
Spirit: Another attempt to fix the test qi/int.cpp for platforms where sizeof(long) != sizeof(int)
Text files modified:
   trunk/libs/spirit/test/qi/int.cpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/libs/spirit/test/qi/int.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/int.cpp (original)
+++ trunk/libs/spirit/test/qi/int.cpp 2009-05-10 12:03:01 EDT (Sun, 10 May 2009)
@@ -37,14 +37,14 @@
 
 #endif // BOOST_HAS_LONG_LONG
 
-#if LONG_MAX != LLONG_MAX
- BOOST_STATIC_ASSERT(sizeof(long) == 4);
+#if INT_MAX != LLONG_MAX
+ BOOST_STATIC_ASSERT(sizeof(int) == 4);
     char const* max_int = "2147483647";
     char const* int_overflow = "2147483648";
     char const* min_int = "-2147483648";
     char const* int_underflow = "-2147483649";
 #else
- BOOST_STATIC_ASSERT(sizeof(long) == 8);
+ BOOST_STATIC_ASSERT(sizeof(int) == 8);
     char const* max_int = "9223372036854775807";
     char const* int_overflow = "9223372036854775808";
     char const* min_int = "-9223372036854775808";


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk