diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2020-04-23 00:42:42 +0200 |
|---|---|---|
| committer | Timotej Lazar <timotej.lazar@araneo.si> | 2020-04-23 18:52:43 +0200 |
| commit | 26ea21551e8b14339fa3016da28cc6e963142944 (patch) | |
| tree | a1b5d19efbcf366ea34ad8133bc6067e41abd210 | |
| parent | b87daf8d02c29c87aab77409811bcb593c3981af (diff) | |
Don’t discard const when copying a pointer
Reported by GCC.
| -rw-r--r-- | src/avp/dynamics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/avp/dynamics.c b/src/avp/dynamics.c index edb5ae9..bb38de4 100644 --- a/src/avp/dynamics.c +++ b/src/avp/dynamics.c @@ -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) { |
