summaryrefslogtreecommitdiff
path: root/arm9/lib/src/FX_mtx22.c
diff options
context:
space:
mode:
authorred031000 <rubenru09@aol.com>2020-05-25 14:51:35 +0100
committerred031000 <rubenru09@aol.com>2020-05-25 14:51:35 +0100
commit933dc9d738e830e797e16f056b49a3c79bcd8352 (patch)
tree362f6e56c80e99c51c1a2b5b5571f0eb5c4042aa /arm9/lib/src/FX_mtx22.c
parente69b83243cb195429be9c40ec1ced2ed860458a2 (diff)
the warnings never end
Diffstat (limited to 'arm9/lib/src/FX_mtx22.c')
-rw-r--r--arm9/lib/src/FX_mtx22.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arm9/lib/src/FX_mtx22.c b/arm9/lib/src/FX_mtx22.c
index 38387c64..a74bb25c 100644
--- a/arm9/lib/src/FX_mtx22.c
+++ b/arm9/lib/src/FX_mtx22.c
@@ -3,10 +3,10 @@
#include "fx.h"
ARM_FUNC void MTX_ScaleApply22(struct Mtx22 *mtx, struct Mtx22 *dst, fx32 x, fx32 y){
- dst->_[0] = ((fx64)x * mtx->_[0]) >> FX32_INT_SHIFT;
- dst->_[1] = ((fx64)x * mtx->_[1]) >> FX32_INT_SHIFT;
- dst->_[2] = ((fx64)y * mtx->_[2]) >> FX32_INT_SHIFT;
- dst->_[3] = ((fx64)y * mtx->_[3]) >> FX32_INT_SHIFT;
+ dst->_[0] = (fx32)(((fx64)x * mtx->_[0]) >> FX32_INT_SHIFT);
+ dst->_[1] = (fx32)(((fx64)x * mtx->_[1]) >> FX32_INT_SHIFT);
+ dst->_[2] = (fx32)(((fx64)y * mtx->_[2]) >> FX32_INT_SHIFT);
+ dst->_[3] = (fx32)(((fx64)y * mtx->_[3]) >> FX32_INT_SHIFT);
}
ARM_FUNC asm void MTX_Identity22_(struct Mtx22 *mtx){