Skip to content

Commit 764798c

Browse files
committed
Avoid rdi that is not necessary
1 parent b890456 commit 764798c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patchelf.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1932,7 +1932,7 @@ void ElfFile<ElfFileParamNames>::rebuildGnuHashTable(const char* strTab, span<El
19321932
{
19331933
Entry e;
19341934
e.hash = gnuHash(strTab + rdi(sym.st_name));
1935-
e.bucketIdx = e.hash % rdi(ght.m_hdr.numBuckets);
1935+
e.bucketIdx = e.hash % ght.m_buckets.size();
19361936
e.originalPos = pos++;
19371937
entries.push_back(e);
19381938
}

0 commit comments

Comments
 (0)