summaryrefslogtreecommitdiff
path: root/vcl/opengl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-01-25 13:35:16 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-01-25 17:03:35 +0100
commit9bcaaae1dd0fcb74687066b6f6215e487af804b2 (patch)
treeeecd6b7d731b174f680351149f79556268429f6d /vcl/opengl
parent60eca4ec0d35da6f943a5894068e1b8d8d666046 (diff)
Use properly typed var for iteration
...avoiding explicit cast from int to size_t Change-Id: Idecc7beed8fd8981b60cfe265826cb502bf27975 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87395 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/opengl')
-rw-r--r--vcl/opengl/texture.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx
index d33cd2453832..9f4acc0fc8eb 100644
--- a/vcl/opengl/texture.cxx
+++ b/vcl/opengl/texture.cxx
@@ -67,7 +67,7 @@ ImplOpenGLTexture::ImplOpenGLTexture( int nWidth, int nHeight, bool bAllocate )
#ifdef DBG_UTIL
std::vector< sal_uInt8 > buffer;
buffer.resize( nWidth * nHeight * 4 );
- for( size_t i = 0; i < size_t( nWidth * nHeight ); ++i )
+ for( int i = 0; i < nWidth * nHeight; ++i )
{ // pre-fill the texture with deterministic garbage
bool odd = (i & 0x01);
buffer[ i * 4 ] = odd ? 0x40 : 0xBF;