This commit is contained in:
Nikolay Korolev 2019-06-22 21:38:12 +03:00
parent 4e07396076
commit 49523b1c03

View File

@ -116,8 +116,8 @@ public:
debug("CopyBack:%d (/%d)", GetNoOfUsedSpaces(), m_size); /* Assumed inlining */
}
void Store(uint8 **flags, U** entries){
*flags = (Flags*)malloc(sizeof(Flags)*size);
*entries = (U*)malloc(sizeof(U)*size);
*flags = (Flags*)malloc(sizeof(Flags)*m_size);
*entries = (U*)malloc(sizeof(U)*m_size);
memcpy(*flags, m_flags, sizeof(Flags)*m_size);
memcpy(*entries, m_entries, sizeof(U)*m_size);
debug("Stored:%d (/%d)", GetNoOfUsedSpaces(), m_size); /* Assumed inlining */