diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2015-11-22 19:12:54 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2015-11-23 00:31:22 +0300 |
commit | 4ff0126e890cebe16b4eec5c1b2bc507346b4f24 (patch) | |
tree | 9d88a5f275928c5d9e393a9fdfe6dccbdcb7ce83 /source/blender/python/mathutils/mathutils_Matrix.c | |
parent | db1f0e36163037c94857626be8ca20dd9ae5b168 (diff) |
C99 is now the C standard for all our C code.
The main new feature is mixed variable declarations and code, which can help
reduce uninitialized variables or accidental variable reuse.
Due to incomplete C99 support in VS 2013, variable length arrays are not
supported, BLI_array_alloca must still be used. The header <tgmath.h> is also
not supported.
Differential Revision: https://developer.blender.org/D1631
Diffstat (limited to 'source/blender/python/mathutils/mathutils_Matrix.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_Matrix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/mathutils/mathutils_Matrix.c b/source/blender/python/mathutils/mathutils_Matrix.c index 7ad20d41bf1..71288871104 100644 --- a/source/blender/python/mathutils/mathutils_Matrix.c +++ b/source/blender/python/mathutils/mathutils_Matrix.c @@ -2055,7 +2055,7 @@ static PyObject *Matrix_richcmpr(PyObject *a, PyObject *b, int op) static Py_hash_t Matrix_hash(MatrixObject *self) { - float mat[SQUARE(MATRIX_MAX_DIM)]; + float mat[MATRIX_MAX_DIM * MATRIX_MAX_DIM]; if (BaseMath_ReadCallback(self) == -1) return -1; |