Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2003-03-19 02:20:10 +0300
committerDaniel Dunbar <daniel@zuster.org>2003-03-19 02:20:10 +0300
commitf8f1591442ce852494e9ee56f09320b35b84b199 (patch)
tree1b291b239b10bda2a88a8381f8577ffeb735139c /intern/moto/include/MT_Matrix4x4.h
parentccf77495943ea35fcb394c1ceec1cbec06251aec (diff)
Killed MT_Scalar to float conversion warnings (should be
explicit cast anyway).
Diffstat (limited to 'intern/moto/include/MT_Matrix4x4.h')
-rwxr-xr-xintern/moto/include/MT_Matrix4x4.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/intern/moto/include/MT_Matrix4x4.h b/intern/moto/include/MT_Matrix4x4.h
index b4f271000dd..fc930055524 100755
--- a/intern/moto/include/MT_Matrix4x4.h
+++ b/intern/moto/include/MT_Matrix4x4.h
@@ -167,17 +167,17 @@ public:
* Read the element from row i, column j.
*/
float getElement(int i, int j) {
- return m_el[i][j];
+ return (float) m_el[i][j];
}
/**
* Copy the contents to a contiguous block of 16 floats.
*/
void getValue(float *m) const {
- *m++ = m_el[0][0]; *m++ = m_el[1][0]; *m++ = m_el[2][0]; *m++ = m_el[3][0];
- *m++ = m_el[0][1]; *m++ = m_el[1][1]; *m++ = m_el[2][1]; *m++ = m_el[3][1];
- *m++ = m_el[0][2]; *m++ = m_el[1][2]; *m++ = m_el[2][2]; *m++ = m_el[3][2];
- *m++ = m_el[0][3]; *m++ = m_el[1][3]; *m++ = m_el[2][3]; *m = m_el[3][3];
+ *m++ = (float) m_el[0][0]; *m++ = (float) m_el[1][0]; *m++ = (float) m_el[2][0]; *m++ = (float) m_el[3][0];
+ *m++ = (float) m_el[0][1]; *m++ = (float) m_el[1][1]; *m++ = (float) m_el[2][1]; *m++ = (float) m_el[3][1];
+ *m++ = (float) m_el[0][2]; *m++ = (float) m_el[1][2]; *m++ = (float) m_el[2][2]; *m++ = (float) m_el[3][2];
+ *m++ = (float) m_el[0][3]; *m++ = (float) m_el[1][3]; *m++ = (float) m_el[2][3]; *m = (float) m_el[3][3];
}
/**