Skip to content

Commit f2697cf

Browse files
committed
fix size
1 parent 1bb6834 commit f2697cf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/cpp/patcher.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ bool perform_reloc_patches(dl_phdr_info* info, const ElfDynamicState& state) {
165165
auto failed = false;
166166

167167
for (auto& plt : std::span{
168-
reinterpret_cast<T*>(state.plt_table), table_size
168+
reinterpret_cast<T*>(state.plt_table),
169+
static_cast<std::size_t>(table_size)
169170
}) {
170171
auto sym = ELF_R_SYM(plt.r_info);
171172
if (sym == 0) continue;

0 commit comments

Comments
 (0)