diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-13 21:13:09 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-13 21:13:48 +0000 |
commit | 124b666538dce60ff30b274f7809776cbb358e93 (patch) | |
tree | 0c0de09594ef69ce26fa444a6e62f5cb3e110cdf /vcl | |
parent | 8eb8175db8ba33e7bde15011f31de20a84a6e56f (diff) |
coverity#1251593 Unintended sign extension
Change-Id: I4374672040b3c6314c4356abe95ee1fb15f568cf
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/opengl/salbmp.cxx | 2 |
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 &) {} |