summaryrefslogtreecommitdiff
path: root/src/d/d_bg_s.cpp
diff options
context:
space:
mode:
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;