Skip to content

Commit fa5b28a

Browse files
ptr 64 bit -3
1 parent be8ef7b commit fa5b28a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

cbxp/control_blocks/ldax.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,10 @@ nlohmann::json LDAX::get(void* p_control_block) {
6161
// Get LDAX from ASSB
6262
// Get LDAX from ASSB - assbldax is a 64-bit pointer
6363
const struct ldax* p_next_ldax =
64-
reinterpret_cast<const struct ldax*>(
65-
static_cast<uintptr_t>(p_assb->assbldax));
64+
reinterpret_cast<const struct ldax*>(p_assb->assbldax);
6665

6766
nlohmann::json next_ldax =
68-
LDAX::get(const_cast<void*>(static_cast<const void*>(p_next_ldax)));
67+
LDAX::get(reinterpret_cast<void*>(p_next_ldax));
6968
if (!next_ldax.is_null()) {
7069
ldaxs.push_back(next_ldax);
7170
}

0 commit comments

Comments
 (0)