summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-13 21:13:09 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-13 21:13:48 +0000
commit124b666538dce60ff30b274f7809776cbb358e93 (patch)
tree0c0de09594ef69ce26fa444a6e62f5cb3e110cdf
parent8eb8175db8ba33e7bde15011f31de20a84a6e56f (diff)
coverity#1251593 Unintended sign extension
Change-Id: I4374672040b3c6314c4356abe95ee1fb15f568cf
-rw-r--r--vcl/opengl/salbmp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx
index 871b66960fe0..5a98d343bd41 100644
--- a/vcl/opengl/salbmp.cxx
+++ b/vcl/opengl/salbmp.cxx
@@ -204,7 +204,7 @@ bool OpenGLSalBitmap::AllocateUserData()
{
try
{
- maUserBuffer.reset( new sal_uInt8[mnBytesPerRow * mnHeight] );
+ maUserBuffer.reset( new sal_uInt8[static_cast<sal_uInt32>(mnBytesPerRow) * mnHeight] );
alloc = true;
}
catch (const std::bad_alloc &) {}