Commits

Andrew Fenn committed ee98cf1 Draft

Correctly cast to const and remove spamming compiler warning in gcc

  • Participants
  • Parent commits 19543b7

Comments (0)

Files changed (1)

OgreMain/include/OgreMatrix3.h

         // member access, allows use of construct mat[r][c]
         inline Real* operator[] (size_t iRow) const
 		{
-			return (Real*)m[iRow];
+			return const_cast<Real*>(m[iRow]);
 		}
         /*inline operator Real* ()
 		{