Skip to content

Commit

Permalink
preserve constness of const argument to avoid warnings (ros#307)
Browse files Browse the repository at this point in the history
Replicating ros/geometry#167
  • Loading branch information
tfoote authored Jul 9, 2018
1 parent ad511ed commit fb02cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tf2/include/tf2/LinearMath/Vector3.h
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ class tf2Vector4 : public Vector3
TF2SIMD_FORCE_INLINE void tf2SwapScalarEndian(const tf2Scalar& sourceVal, tf2Scalar& destVal)
{
unsigned char* dest = (unsigned char*) &destVal;
unsigned char* src = (unsigned char*) &sourceVal;
const unsigned char* src = (const unsigned char*) &sourceVal;
dest[0] = src[7];
dest[1] = src[6];
dest[2] = src[5];
Expand Down

0 comments on commit fb02cb1

Please sign in to comment.