summaryrefslogtreecommitdiffstats
path: root/include/comphelper/newarray.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/comphelper/newarray.hxx')
-rw-r--r--include/comphelper/newarray.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/comphelper/newarray.hxx b/include/comphelper/newarray.hxx
index a28bff7477cb..a904f7d1ed0d 100644
--- a/include/comphelper/newarray.hxx
+++ b/include/comphelper/newarray.hxx
@@ -29,7 +29,7 @@ namespace comphelper {
template<typename T> T *
newArray_null(size_t const n) throw()
{
- if (((::std::numeric_limits<size_t>::max)() / sizeof(T)) <= n) {
+ if ((::std::numeric_limits<size_t>::max() / sizeof(T)) <= n) {
return 0;
}
return new (::std::nothrow) T[n];