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 & ) {