Don’t discard const when copying a pointer
Reported by GCC.
This commit is contained in:
parent
b87daf8d02
commit
26ea21551e
1 changed files with 2 additions and 2 deletions
|
@ -3272,7 +3272,7 @@ static void TestObjectWithStaticBoundingBox(DISPLAYBLOCK *objectPtr)
|
|||
|
||||
static int IsPolygonWithinDynamicBoundingBox(const struct ColPolyTag *polyPtr)
|
||||
{
|
||||
VECTORCH *vertices = polyPtr->PolyPoint;
|
||||
const VECTORCH *vertices = polyPtr->PolyPoint;
|
||||
|
||||
if (polyPtr->NumberOfVertices==4)
|
||||
{
|
||||
|
@ -3353,7 +3353,7 @@ static int IsPolygonWithinDynamicBoundingBox(const struct ColPolyTag *polyPtr)
|
|||
|
||||
static int IsPolygonWithinStaticBoundingBox(const struct ColPolyTag *polyPtr)
|
||||
{
|
||||
VECTORCH *vertices = polyPtr->PolyPoint;
|
||||
const VECTORCH *vertices = polyPtr->PolyPoint;
|
||||
|
||||
if (polyPtr->NumberOfVertices==4)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue