From 51a1d5991d61642816cdab07815902e7e44db3f8 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 25 May 2004 14:45:22 +0000 Subject: [PATCH] when testing new failure use max for type size_t instead of LONG_MAX --- src/libCom/test/epicsExceptionTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libCom/test/epicsExceptionTest.cpp b/src/libCom/test/epicsExceptionTest.cpp index 5041125dd..ee2dff482 100644 --- a/src/libCom/test/epicsExceptionTest.cpp +++ b/src/libCom/test/epicsExceptionTest.cpp @@ -15,8 +15,8 @@ #include #include +#include -#include #include #include @@ -44,7 +44,7 @@ static void epicsExceptionTestPrivate () { int excep = false; try { - new char [LONG_MAX]; + new char [numeric_limits::max (size_t)]; assert ( 0 ); } catch ( const bad_alloc & ) {