diff options
| author | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2024-03-07 19:23:18 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-07 20:23:18 -0700 |
| commit | ba4847e9cc2514fd722d45e54f7af87ee9de5bbd (patch) | |
| tree | b84de84c303d05af80777f79c7f0579c9b9fadb2 /include/JSystem/JMath | |
| parent | 22e941fd8c506a8b8ee0d963c5e50dae7ba379bc (diff) | |
d_a_shop_item, d_a_b_go, d_a_b_gos OK (#2085)
* d_a_shop_item OK
* d_a_b_go OK
* d_a_b_gos OK
* remove asm
* some work on d_a_b_oh / d_a_b_zant_sima
* d_a_startAndGoal done
Diffstat (limited to 'include/JSystem/JMath')
| -rw-r--r-- | include/JSystem/JMath/JMATrigonometric.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/JSystem/JMath/JMATrigonometric.h b/include/JSystem/JMath/JMATrigonometric.h index 48107ab04d..206cc47077 100644 --- a/include/JSystem/JMath/JMATrigonometric.h +++ b/include/JSystem/JMath/JMATrigonometric.h @@ -15,8 +15,8 @@ struct TAngleConstant_<f32> { struct TSinCosTable { std::pair<f32, f32> table[0x2000]; - f32 sinShort(s16 v) const { return table[static_cast<u16>(v) >> 3].first; } - f32 cosShort(s16 v) const { return table[static_cast<u16>(v) >> 3].second; } + f32 sinShort(s16 v) const { return table[(u16)v >> 3U].first; } + f32 cosShort(s16 v) const { return table[(u16)v >> 3U].second; } inline f32 sinLap(f32 v) { if (v < 0.0f) { |
