]> git.saurik.com Git - apt.git/blobdiff - ftparchive/contents.cc
The entire concept of PendingError() is flawed :/.
[apt.git] / ftparchive / contents.cc
index 145f3910ed01d2942fd13d109c33e8c9fa692ec0..0ce15b3d632b540be5e6b6597fef3514e3b69ae9 100644 (file)
@@ -100,7 +100,7 @@ void *GenContents::Node::operator new(size_t Amount,GenContents *Owner)
    if (Owner->NodeLeft == 0)
    {
       Owner->NodeLeft = 10000;
    if (Owner->NodeLeft == 0)
    {
       Owner->NodeLeft = 10000;
-      Owner->NodePool = (Node *)malloc(Amount*Owner->NodeLeft);
+      Owner->NodePool = static_cast<Node *>(malloc(Amount*Owner->NodeLeft));
       BigBlock *Block = new BigBlock;
       Block->Block = Owner->NodePool;
       Block->Next = Owner->BlockList;
       BigBlock *Block = new BigBlock;
       Block->Block = Owner->NodePool;
       Block->Next = Owner->BlockList;