Don’t discard const when copying a pointer

Reported by GCC.
This commit is contained in:
Timotej Lazar 2020-04-23 00:42:42 +02:00
parent b87daf8d02
commit 26ea21551e

View file

@ -3272,7 +3272,7 @@ static void TestObjectWithStaticBoundingBox(DISPLAYBLOCK *objectPtr)
static int IsPolygonWithinDynamicBoundingBox(const struct ColPolyTag *polyPtr) static int IsPolygonWithinDynamicBoundingBox(const struct ColPolyTag *polyPtr)
{ {
VECTORCH *vertices = polyPtr->PolyPoint; const VECTORCH *vertices = polyPtr->PolyPoint;
if (polyPtr->NumberOfVertices==4) if (polyPtr->NumberOfVertices==4)
{ {
@ -3353,7 +3353,7 @@ static int IsPolygonWithinDynamicBoundingBox(const struct ColPolyTag *polyPtr)
static int IsPolygonWithinStaticBoundingBox(const struct ColPolyTag *polyPtr) static int IsPolygonWithinStaticBoundingBox(const struct ColPolyTag *polyPtr)
{ {
VECTORCH *vertices = polyPtr->PolyPoint; const VECTORCH *vertices = polyPtr->PolyPoint;
if (polyPtr->NumberOfVertices==4) if (polyPtr->NumberOfVertices==4)
{ {