summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-02-27 10:36:52 +0200
committerNoel Grandin <noel@peralex.com>2015-03-02 08:59:18 +0200
commite2ac5e744e9a4a3776a72bde4778ed1e48c5e895 (patch)
treeabec19de88a27fd33df964df9e2fbcf2affb45e3 /vcl/source
parentaf5b4d295a4df3f1234bbed25d29941a908d340e (diff)
cppcheck: unsignedLessThanZero
Change-Id: I5beba0730f7403eb51f3717401b8d456f645348f
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/filter/jpeg/JpegReader.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/jpeg/JpegReader.cxx b/vcl/source/filter/jpeg/JpegReader.cxx
index 78c2ae81b381..0450bc602b4d 100644
--- a/vcl/source/filter/jpeg/JpegReader.cxx
+++ b/vcl/source/filter/jpeg/JpegReader.cxx
@@ -207,7 +207,7 @@ unsigned char * JPEGReader::CreateBitmap( JPEGCreateBitmapParam * pParam )
if (pParam->nWidth > SAL_MAX_INT32 / 8 || pParam->nHeight > SAL_MAX_INT32 / 8)
return NULL; // avoid overflows later
- if (pParam->nWidth <= 0 || pParam->nHeight <=0)
+ if (pParam->nWidth == 0 || pParam->nHeight == 0)
return NULL;
Size aSize( pParam->nWidth, pParam->nHeight );