fix clang warning and errors

This commit is contained in:
Nikita Smith
2025-03-17 15:25:49 -07:00
parent 344cd8ffbf
commit 1dc0192322
3 changed files with 13 additions and 3 deletions
+10 -1
View File
@@ -4,7 +4,16 @@
internal void
bucket_list_concat_in_place(BucketList *list, BucketList *to_concat)
{
SLLConcatInPlaceNoCount(list, to_concat);
if (to_concat->first) {
if (list->first) {
list->last->next = to_concat->first;
list->last = to_concat->last;
} else {
list->first = to_concat->first;
list->last = to_concat->last;
}
MemoryZeroStruct(to_concat);
}
}
internal BucketNode *