Skip to content

Commit

Permalink
Fix memcpy usage in JoinHashTable::buildHashSlots()
Browse files Browse the repository at this point in the history
  • Loading branch information
mewim committed Apr 11, 2024
1 parent 86a7a70 commit 4ee9760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processor/operator/hash_join/join_hash_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void JoinHashTable::buildHashSlots() {
for (auto i = 0u; i < tupleBlock->numTuples; i++) {
auto lastSlotEntryInHT = insertEntry(tuple);
auto prevPtr = getPrevTuple(tuple);
memcpy((void*) prevPtr, (const void*) &lastSlotEntryInHT, sizeof(uint8_t*));
memcpy(prevPtr, reinterpret_cast<void*>(&lastSlotEntryInHT), sizeof(uint8_t*));
tuple += factorizedTable->getTableSchema()->getNumBytesPerTuple();
}
}
Expand Down

0 comments on commit 4ee9760

Please sign in to comment.