Fix some macro parenthesis issues.

This commit is contained in:
Bill Currie 2012-05-19 21:25:58 +09:00
parent d25f39cc7d
commit 6ace105e31

View file

@ -502,11 +502,11 @@ extern const vec_t *const quat_origin;
QuatCompMult ((a) + 12, (b) + 12, (c) + 12); \
} while (0)
#define Mat4Zero(a) \
memset (a, 0, 16 * sizeof a[0])
memset ((a), 0, 16 * sizeof (a)[0])
#define Mat4Identity(a) \
do { \
Mat4Zero (a); \
a[15] = a[10] = a[5] = a[0] = 1; \
(a)[15] = (a)[10] = (a)[5] = (a)[0] = 1; \
} while (0)
#define Mat4Expand(a) \
QuatExpand ((a) + 0), \