- use correct offset type (Ralf)
authorpmatilai <pmatilai>
Fri, 9 Jun 2006 08:11:27 +0000 (08:11 +0000)
committerpmatilai <pmatilai>
Fri, 9 Jun 2006 08:11:27 +0000 (08:11 +0000)
apt-pkg/contrib/mmap.cc

index 8b11829..bd6c1e2 100644 (file)
@@ -191,7 +191,7 @@ DynamicMMap::~DynamicMMap()
       return;
    }
    
-   unsigned long EndOfFile = iSize;
+   off_t EndOfFile = iSize;
    iSize = WorkSpace;
    Close(false);
    ftruncate(Fd->Fd(),EndOfFile);