From 633e5e16cd233cbb28b24527bb27bf5463ea7276 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 3 Sep 2014 19:01:30 +0200 Subject: What is a ridiculous size in 32-bit code is also ridiculous in 64-bit code Avoids the CppunitTest_vcl_filters_test allocating an insane amount of memory when run as 64-bit on OS X. Change-Id: I978347849c2cf5fd1663e5a85a788b736e239e94 --- vcl/quartz/salbmp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx index 2704dc428da3..a9805100d907 100644 --- a/vcl/quartz/salbmp.cxx +++ b/vcl/quartz/salbmp.cxx @@ -303,7 +303,7 @@ bool QuartzSalBitmap::AllocateUserData() bool alloc = false; if (mnBytesPerRow != 0 - && mnBytesPerRow <= std::numeric_limits::max() / mnHeight) + && mnBytesPerRow <= std::numeric_limits::max() / mnHeight) { try { -- cgit