diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2023-10-21 18:52:52 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2023-10-21 18:52:52 -0400 |
| commit | 35bd70b8db7d0d2f2d211fa65a64f0b4f635c265 (patch) | |
| tree | 3e4b56aca1059d85b84d3dbecc316d1de6376cc7 /include/SSystem/SComponent | |
| parent | 1dd6f60fe6b0eee0e16c24fa91cfe1e100671c88 (diff) | |
d_a_obj_movebox progress
Diffstat (limited to 'include/SSystem/SComponent')
| -rw-r--r-- | include/SSystem/SComponent/c_lib.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/SSystem/SComponent/c_lib.h b/include/SSystem/SComponent/c_lib.h index 0a9d87d3..d2680e86 100644 --- a/include/SSystem/SComponent/c_lib.h +++ b/include/SSystem/SComponent/c_lib.h @@ -38,12 +38,12 @@ s32 cLib_distanceAngleS(s16 x, s16 y); template <typename T> inline void cLib_offBit(T& value, T bit) { - value &= ~bit; + value = static_cast<T>(value & ~bit); } template <typename T> inline void cLib_onBit(T& value, T bit) { - value |= bit; + value = static_cast<T>(value | bit); } template <typename T> |
