diff options
Diffstat (limited to 'src/math/vector.h')
-rw-r--r-- | src/math/vector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/vector.h b/src/math/vector.h index 148d648..147869f 100644 --- a/src/math/vector.h +++ b/src/math/vector.h @@ -76,13 +76,13 @@ struct Vector //! 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 vector length |