mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
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:
committed by
Tim Edwards
parent
b654647fdc
commit
7dfdf5aa63
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user