diff options
Diffstat (limited to 'src/math/point.h')
-rw-r--r-- | src/math/point.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/point.h b/src/math/point.h index 740b275..ea20db9 100644 --- a/src/math/point.h +++ b/src/math/point.h @@ -71,13 +71,13 @@ struct Point //! Returns the struct cast to \c float* array; use with care! inline float* Array() { - return (float*)this; + return reinterpret_cast<float*>(this); } //! Returns the struct cast to <tt>const float*</tt> array; use with care! inline const float* Array() const { - return (const float*)this; + return reinterpret_cast<const float*>(this); } //! Returns the distance from (0,0) to the point (x,y) |