summaryrefslogtreecommitdiff
path: root/src/d/d_bg_s.cpp
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2025-09-04 07:56:59 -0700
committerGitHub <noreply@github.com>2025-09-04 17:56:59 +0300
commitb45a089e15d79821b07be020db628e01a49b1fd2 (patch)
tree948057548cc19b19d644bd4f300ca6434e6bff11 /src/d/d_bg_s.cpp
parentee8b843996f4d888903f8c125b95ec1af376877e (diff)
some J3D/misc cleanup (#2628)
* some j3d cleanup * begin using uintptr_t * j3dgraphbase cleanup * j3dgraphanimator cleanup
Diffstat (limited to 'src/d/d_bg_s.cpp')
-rw-r--r--src/d/d_bg_s.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/d/d_bg_s.cpp b/src/d/d_bg_s.cpp
index d8376a2c5b..99bff775de 100644
--- a/src/d/d_bg_s.cpp
+++ b/src/d/d_bg_s.cpp
@@ -194,18 +194,18 @@ void* cBgS::ConvDzb(void* p_dzb) {
}
if (pbgd->m_v_tbl != 0) {
- pbgd->m_v_tbl += (u32)p_dzb;
+ pbgd->m_v_tbl += (uintptr_t)p_dzb;
}
- pbgd->m_t_tbl += (u32)p_dzb;
- pbgd->m_b_tbl += (u32)p_dzb;
- pbgd->m_tree_tbl += (u32)p_dzb;
- pbgd->m_g_tbl += (u32)p_dzb;
- pbgd->m_ti_tbl += (u32)p_dzb;
+ pbgd->m_t_tbl += (uintptr_t)p_dzb;
+ pbgd->m_b_tbl += (uintptr_t)p_dzb;
+ pbgd->m_tree_tbl += (uintptr_t)p_dzb;
+ pbgd->m_g_tbl += (uintptr_t)p_dzb;
+ pbgd->m_ti_tbl += (uintptr_t)p_dzb;
for (int i = 0; i < pbgd->m_g_num; i++) {
((cBgD_Grp_t_*)pbgd->m_g_tbl)[i].strOffset =
- (u32)p_dzb + ((cBgD_Grp_t_*)pbgd->m_g_tbl)[i].strOffset;
+ (uintptr_t)p_dzb + ((cBgD_Grp_t_*)pbgd->m_g_tbl)[i].strOffset;
}
return p_dzb;