Advertisement
Guest User

Untitled

a guest
Jan 27th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. diff --git a/src/engine/memorytable.cpp b/src/engine/memorytable.cpp
  2. index 52ba609..6d91eb3 100644
  3. --- a/src/engine/memorytable.cpp
  4. +++ b/src/engine/memorytable.cpp
  5. @@ -338,7 +338,7 @@ quint32 MemoryTablePrivate::allocate(quint32 size, TableMetadata *table, bool in
  6.  
  7. // Align the allocation so that the header is directly accessible
  8. quint32 allocationSize = static_cast<quint32>(requiredSpace(size));
  9. - allocationSize = roundUp(allocationSize, sizeof(quint32));
  10. + allocationSize = roundUp(allocationSize, static_cast<quint32>(sizeof(quint32)));
  11.  
  12. if (table->freeList) {
  13. // Try to reuse a freed block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement