From 8a105dab3f2da6550aac481ce283cbc967fadb53 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 20 Sep 2001 11:44:05 +0000 Subject: [PATCH] Fixes for the case that platform has its own stdint.h (less stringent tests) [SVN r11163] --- cstdint_test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cstdint_test.cpp b/cstdint_test.cpp index 4434ade..8fee58f 100644 --- a/cstdint_test.cpp +++ b/cstdint_test.cpp @@ -99,7 +99,14 @@ void integral_constant_type_check(T1, T2) // numeric_limits implementations currently // vary too much, or are incomplete or missing. // +#if defined(BOOST_HAS_STDINT_H) + // if we have a native stdint.h + // then the INTXX_C macros may define + // a type that's wider than required: + assert(sizeof(T1) <= sizeof(T2)); +#else assert(sizeof(T1) == sizeof(T2)); +#endif T1 t1 = -1; T2 t2 = -1; assert(t1 == t2);