Skip to content

Commit f044529

Browse files
authored
Merge pull request opencv#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
1 parent 5a06d67 commit f044529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3rdparty/carotene/src/resize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ inline void resizeAreaRounding(const Size2D &ssize, const Size2D &dsize,
758758
}
759759
else if (channels == 3)
760760
{
761-
if ((wr == 2.0f) && (wr == 2.0f))
761+
if ((wr == 2.0f) && (hr == 2.0f))
762762
{
763763
#ifndef __ANDROID__
764764
size_t roiw16 = dsize.width >= 15 ? (dsize.width - 15) * 3 : 0;

0 commit comments

Comments
 (0)