mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Merge pull request #19525 from danbey:Fix-cppcheck-error-in-carotete-lib
* Reduce if statement as it has the same expression on both sides of '&&' If statement has the same expression on both sides so this can be reduce Signed-off-by: Dan Ben Yosef <danbey@gmail.com> * The if statement is to check width and height
This commit is contained in:
parent
5a06d679cf
commit
f0445295bd
2
3rdparty/carotene/src/resize.cpp
vendored
2
3rdparty/carotene/src/resize.cpp
vendored
@ -758,7 +758,7 @@ inline void resizeAreaRounding(const Size2D &ssize, const Size2D &dsize,
|
|||||||
}
|
}
|
||||||
else if (channels == 3)
|
else if (channels == 3)
|
||||||
{
|
{
|
||||||
if ((wr == 2.0f) && (wr == 2.0f))
|
if ((wr == 2.0f) && (hr == 2.0f))
|
||||||
{
|
{
|
||||||
#ifndef __ANDROID__
|
#ifndef __ANDROID__
|
||||||
size_t roiw16 = dsize.width >= 15 ? (dsize.width - 15) * 3 : 0;
|
size_t roiw16 = dsize.width >= 15 ? (dsize.width - 15) * 3 : 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user