DBcellcopy.c: fix warning: self-comparison always evaluates to false

Looks like a straighforward logic bug from a recent (2023) change.

GCC14 -Wall cleanup series [-Wtautological-compare]
This commit is contained in:
Darryl L. Miles 2024-10-04 16:01:27 +01:00 committed by Tim Edwards
parent 015f03307a
commit 4ea0f6a9b7
1 changed files with 1 additions and 1 deletions

View File

@ -666,7 +666,7 @@ DBFlattenInPlace(use, dest, xMask, dolabels, toplabels, doclear)
scx.scx_y++;
scx.scx_x = use->cu_xlo;
}
else if (use->cu_yhi > use->cu_yhi)
else if (use->cu_ylo > use->cu_yhi)
{
scx.scx_y--;
scx.scx_x = use->cu_xlo;