CIFrdcl.c: warning: comparison between two arrays

Added pointer casts to hint to compiler the programmer intention
is to compare as pointers to the start of the array (and not be
concerned the programmer is overlooking the contents of the array).

GCC14 -Wall cleanup series [-Warray-compare]
This commit is contained in:
Darryl L. Miles 2024-10-04 17:10:48 +01:00 committed by Tim Edwards
parent b654647fdc
commit 7dfdf5aa63
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ CIFInputRescale(n, d)
CIFScalePlanes(n, d, cifCurReadPlanes);
if (cifCurReadPlanes != cifEditCellPlanes)
CIFScalePlanes(n, d, cifEditCellPlanes);
if (cifEditCellPlanes != cifSubcellPlanes && cifCurReadPlanes != cifSubcellPlanes)
if ((const Plane*)cifEditCellPlanes != (const Plane*)cifSubcellPlanes && cifCurReadPlanes != cifSubcellPlanes)
CIFScalePlanes(n, d, cifSubcellPlanes);
CIFReadWarning("CIF style %s: units rescaled by factor of %d / %d\n",